From 67964e71f17df13e03a0aaa1a6dcd6c9253da97d Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 3 Jun 2019 13:01:57 -0400 Subject: homing: Catch the more generic CommandError during homing Allow the low-level homing code to raise either a gcode.error or an EndstopError during a fault. Signed-off-by: Kevin O'Connor --- klippy/extras/manual_stepper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'klippy/extras/manual_stepper.py') diff --git a/klippy/extras/manual_stepper.py b/klippy/extras/manual_stepper.py index 01758d99..7cbbe806 100644 --- a/klippy/extras/manual_stepper.py +++ b/klippy/extras/manual_stepper.py @@ -89,12 +89,12 @@ class ManualStepper: for mcu_endstop, name in endstops: try: mcu_endstop.home_finalize() - except homing.EndstopError as e: + except homing.CommandError as e: if error is None: error = str(e) self.sync_print_time() if error is not None: - raise self.gcode.error(error) + raise homing.CommandError(error) cmd_MANUAL_STEPPER_help = "Command a manually configured stepper" def cmd_MANUAL_STEPPER(self, params): if 'ENABLE' in params: -- cgit v1.2.3-70-g09d2