From 945a84c0ea3c77dd048da71d6501a4b6b4147b94 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 3 Jun 2019 12:48:35 -0400 Subject: gcode: Use the same underlying error object for homing and gcode errors Introduce a homing.CommandError and use that as the basis for both gcode and EndstopError exceptions. Signed-off-by: Kevin O'Connor --- klippy/homing.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'klippy/homing.py') diff --git a/klippy/homing.py b/klippy/homing.py index f6f7e5d8..ce37487d 100644 --- a/klippy/homing.py +++ b/klippy/homing.py @@ -146,7 +146,10 @@ class Homing: self.toolhead.motor_off() raise -class EndstopError(Exception): +class CommandError(Exception): + pass + +class EndstopError(CommandError): pass def EndstopMoveError(pos, msg="Move out of range"): -- cgit v1.2.3-70-g09d2