diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-08-26 00:04:48 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-08-26 18:27:21 -0400 |
commit | a42cb4fecfbf8f4319b0b2d04c69ecec7e1b8ff5 (patch) | |
tree | be73f6f5f88f578c9325ea16ef605337b3e5afb5 /klippy/gcode.py | |
parent | 68ba3d51065f56947e4c2d7d76f46b7b8913f61a (diff) | |
download | kutter-a42cb4fecfbf8f4319b0b2d04c69ecec7e1b8ff5.tar.gz kutter-a42cb4fecfbf8f4319b0b2d04c69ecec7e1b8ff5.tar.xz kutter-a42cb4fecfbf8f4319b0b2d04c69ecec7e1b8ff5.zip |
toolhead: Avoid directly accessing the printer.mcu field
Lookup the mcu object from the printer objects and store it locally in
the toolhead class.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/gcode.py')
-rw-r--r-- | klippy/gcode.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/gcode.py b/klippy/gcode.py index fafa9476..a890b94f 100644 --- a/klippy/gcode.py +++ b/klippy/gcode.py @@ -429,7 +429,7 @@ class GCodeParser: return try: res = self.toolhead.query_endstops() - except self.printer.mcu.error as e: + except homing.EndstopError as e: self.respond_error(str(e)) return self.respond(" ".join(["%s:%s" % (name, ["open", "TRIGGERED"][not not t]) |