aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/webhooks.py
diff options
context:
space:
mode:
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)