mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-07 23:17:37 -06:00
gcode: Move definition of CommandError and Coord from homing.py to gcode.py
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
c8434ec54b
commit
ea85d419de
6 changed files with 24 additions and 28 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue