aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/toolhead.py
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/toolhead.py')
-rw-r--r--klippy/toolhead.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/klippy/toolhead.py b/klippy/toolhead.py
index dde40e9b..3a73bb26 100644
--- a/klippy/toolhead.py
+++ b/klippy/toolhead.py
@@ -328,7 +328,11 @@ class ToolHead:
if self.print_time > self.need_check_stall:
self._check_stall()
def home(self, homing_state):
- self.kin.home(homing_state)
+ try:
+ self.kin.home(homing_state)
+ except homing.EndstopError as e:
+ self.motor_off()
+ raise
def dwell(self, delay, check_stall=True):
self.get_last_move_time()
self.update_move_time(delay)