diff --git a/klippy/extras/stepper_enable.py b/klippy/extras/stepper_enable.py index e02563fb..a21c0f98 100644 --- a/klippy/extras/stepper_enable.py +++ b/klippy/extras/stepper_enable.py @@ -95,6 +95,8 @@ class PrinterStepperEnable: # Turn off motors self.motor_off() def lookup_enable(self, name): + if name not in self.enable_lines: + raise self.printer.config_error("Unknown stepper '%s'" % (name,)) return self.enable_lines[name] def load_config(config):