aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/homing.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-09-04 11:41:57 -0400
committerKevin O'Connor <kevin@koconnor.net>2020-09-04 11:41:57 -0400
commitf6dd97b78443548c236038ce50a69c24866e156d (patch)
treed6903319195a312db946e610372727b6fcab2149 /klippy/homing.py
parent1f3a160f47175c44722a3ce1e58e90c359b99c99 (diff)
downloadkutter-f6dd97b78443548c236038ce50a69c24866e156d.tar.gz
kutter-f6dd97b78443548c236038ce50a69c24866e156d.tar.xz
kutter-f6dd97b78443548c236038ce50a69c24866e156d.zip
homing: Remove EndstopError
There's no reason to distinguish between an EndstopError and a CommandError, so just use CommandError. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/homing.py')
-rw-r--r--klippy/homing.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/klippy/homing.py b/klippy/homing.py
index ce9a3de8..2e2e072d 100644
--- a/klippy/homing.py
+++ b/klippy/homing.py
@@ -101,8 +101,8 @@ class Homing:
for s, name, spos, epos in end_mcu_pos:
if spos == epos:
if probe_pos:
- raise EndstopError("Probe triggered prior to movement")
- raise EndstopError(
+ raise CommandError("Probe triggered prior to movement")
+ raise CommandError(
"Endstop %s still triggered after retract" % (name,))
def home_rails(self, rails, forcepos, movepos):
# Notify of upcoming homing operation
@@ -161,7 +161,4 @@ def multi_complete(printer, completions):
class CommandError(Exception):
pass
-class EndstopError(CommandError):
- pass
-
Coord = collections.namedtuple('Coord', ('x', 'y', 'z', 'e'))