aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extruder.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-11-18 12:42:39 -0500
committerKevin O'Connor <kevin@koconnor.net>2016-11-18 14:17:53 -0500
commit4f30dce64f16ad17ba471538fa3abe0e63f5b91f (patch)
tree821f724fbef0a667723e50f91ea4bc6bf4c5949b /klippy/extruder.py
parent2b5b899d35d33ed6b8bfb90133d22095d0a56c66 (diff)
downloadkutter-4f30dce64f16ad17ba471538fa3abe0e63f5b91f.tar.gz
kutter-4f30dce64f16ad17ba471538fa3abe0e63f5b91f.tar.xz
kutter-4f30dce64f16ad17ba471538fa3abe0e63f5b91f.zip
homing: Add EndstopMoveError wrapper around EndstopError
Allow an EndstopError to be raised without a destination position. Introduce EndstopMoveError wrapper so that current callers can continue to pass in a move destination. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extruder.py')
-rw-r--r--klippy/extruder.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/extruder.py b/klippy/extruder.py
index 451aebb0..823ed599 100644
--- a/klippy/extruder.py
+++ b/klippy/extruder.py
@@ -23,7 +23,8 @@ class PrinterExtruder:
self.need_motor_enable = True
def check_move(self, move):
if not self.heater.can_extrude:
- raise homing.EndstopError(move.end_pos, "Extrude below minimum temp")
+ raise homing.EndstopMoveError(
+ move.end_pos, "Extrude below minimum temp")
if (not move.do_calc_junction
and not move.axes_d[0] and not move.axes_d[1]
and not move.axes_d[2]):