From a42cb4fecfbf8f4319b0b2d04c69ecec7e1b8ff5 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 26 Aug 2017 00:04:48 -0400 Subject: 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 --- klippy/gcode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/gcode.py') 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]) -- cgit v1.2.3-70-g09d2