diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-09-04 11:49:43 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-09-04 12:10:36 -0400 |
commit | 08adecd226b4d712eb900b1768a7a96294a89c20 (patch) | |
tree | f264d23bcbf096388e35345d525bcac3afa5bdd6 /klippy/toolhead.py | |
parent | f6dd97b78443548c236038ce50a69c24866e156d (diff) | |
download | kutter-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/toolhead.py')
-rw-r--r-- | klippy/toolhead.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/toolhead.py b/klippy/toolhead.py index f14e81b9..f09e9016 100644 --- a/klippy/toolhead.py +++ b/klippy/toolhead.py @@ -250,7 +250,7 @@ class ToolHead: self.trapq_free_moves = ffi_lib.trapq_free_moves self.step_generators = [] # Create kinematics class - self.extruder = kinematics.extruder.DummyExtruder() + self.extruder = kinematics.extruder.DummyExtruder(self.printer) kin_name = config.get('kinematics') try: mod = importlib.import_module('kinematics.' + kin_name) @@ -470,7 +470,7 @@ class ToolHead: # Submit move try: self.move(newpos, speed) - except homing.CommandError as e: + except self.printer.command_error as e: self.flush_step_generation() raise # Transmit move in "drip" mode |