aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/webhooks.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-01-08 12:07:45 -0500
committerKevin O'Connor <kevin@koconnor.net>2021-01-08 12:07:45 -0500
commitea85d419dea23cac464763c9b36e1b59c9074588 (patch)
tree5671dd7cf1a2c2ec2a05a87c1f5337e280100185 /klippy/webhooks.py
parentc8434ec54b0517503af4aeee9016783d508118b0 (diff)
downloadkutter-ea85d419dea23cac464763c9b36e1b59c9074588.tar.gz
kutter-ea85d419dea23cac464763c9b36e1b59c9074588.tar.xz
kutter-ea85d419dea23cac464763c9b36e1b59c9074588.zip
gcode: Move definition of CommandError and Coord from homing.py to gcode.py
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/webhooks.py')
-rw-r--r--klippy/webhooks.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/klippy/webhooks.py b/klippy/webhooks.py
index 24613b04..7fffc1fe 100644
--- a/klippy/webhooks.py
+++ b/klippy/webhooks.py
@@ -3,13 +3,8 @@
# Copyright (C) 2020 Eric Callahan <arksine.code@gmail.com>
#
# This file may be distributed under the terms of the GNU GPLv3 license
-import logging
-import socket
-import os
-import sys
-import errno
-import json
-import homing
+import logging, socket, os, sys, errno, json
+import gcode
# Json decodes strings as unicode types in Python 2.x. This doesn't
# play well with some parts of Klipper (particuarly displays), so we
@@ -27,7 +22,7 @@ def byteify(data, ignore_dicts=False):
for k, v in data.items()}
return data
-class WebRequestError(homing.CommandError):
+class WebRequestError(gcode.CommandError):
def __init__(self, message,):
Exception.__init__(self, message)