aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/manual_stepper.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-09-04 11:49:43 -0400
committerKevin O'Connor <kevin@koconnor.net>2020-09-04 12:10:36 -0400
commit08adecd226b4d712eb900b1768a7a96294a89c20 (patch)
treef264d23bcbf096388e35345d525bcac3afa5bdd6 /klippy/extras/manual_stepper.py
parentf6dd97b78443548c236038ce50a69c24866e156d (diff)
downloadkutter-08adecd226b4d712eb900b1768a7a96294a89c20.tar.gz
kutter-08adecd226b4d712eb900b1768a7a96294a89c20.tar.xz
kutter-08adecd226b4d712eb900b1768a7a96294a89c20.zip
homing: Prefer printer.command_error() instead of homing.CommandError()
Update callers to use the printer.command_error reference instead of directly using homing.CommandError() when raising or catching errors. 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 5807c04c..fba23f6a 100644
--- a/klippy/extras/manual_stepper.py
+++ b/klippy/extras/manual_stepper.py
@@ -3,7 +3,7 @@
# Copyright (C) 2019 Kevin O'Connor <kevin@koconnor.net>
#
# This file may be distributed under the terms of the GNU GPLv3 license.
-import stepper, homing, chelper
+import stepper, chelper
from . import force_move
ENDSTOP_SAMPLE_TIME = .000015
@@ -110,7 +110,7 @@ class ManualStepper:
error = str(e)
self.sync_print_time()
if error is not None:
- raise homing.CommandError(error)
+ raise self.printer.command_error(error)
cmd_MANUAL_STEPPER_help = "Command a manually configured stepper"
def cmd_MANUAL_STEPPER(self, gcmd):
enable = gcmd.get_int('ENABLE', None)