mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-07 15:07:33 -06:00
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>
This commit is contained in:
parent
f6dd97b784
commit
08adecd226
8 changed files with 16 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue