aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/manual_stepper.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-06-03 13:01:57 -0400
committerKevinOConnor <kevin@koconnor.net>2019-06-06 10:08:58 -0400
commit67964e71f17df13e03a0aaa1a6dcd6c9253da97d (patch)
tree3523e450c42e00ceb4a19d113bf5c17d4f47379c /klippy/extras/manual_stepper.py
parente9935e1a41be3ddfd20233d88c5f524283c935b3 (diff)
downloadkutter-67964e71f17df13e03a0aaa1a6dcd6c9253da97d.tar.gz
kutter-67964e71f17df13e03a0aaa1a6dcd6c9253da97d.tar.xz
kutter-67964e71f17df13e03a0aaa1a6dcd6c9253da97d.zip
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/manual_stepper.py')
-rw-r--r--klippy/extras/manual_stepper.py4
1 files changed, 2 insertions, 2 deletions
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: