From 08adecd226b4d712eb900b1768a7a96294a89c20 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 4 Sep 2020 11:49:43 -0400 Subject: homing: Prefer printer.command_error() instead of homing.CommandError() Update callers to use the printer.command_error reference instead of directly using homing.CommandError() when raising or catching errors. Signed-off-by: Kevin O'Connor --- klippy/extras/manual_probe.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'klippy/extras/manual_probe.py') diff --git a/klippy/extras/manual_probe.py b/klippy/extras/manual_probe.py index f42aaba8..e678bdf7 100644 --- a/klippy/extras/manual_probe.py +++ b/klippy/extras/manual_probe.py @@ -4,7 +4,6 @@ # # This file may be distributed under the terms of the GNU GPLv3 license. import logging, bisect -import homing class ManualProbe: def __init__(self, config): @@ -97,7 +96,7 @@ class ManualProbeHelper: if curpos[2] < z_bob_pos: self.toolhead.manual_move([None, None, z_bob_pos], self.speed) self.toolhead.manual_move([None, None, z_pos], self.speed) - except homing.CommandError as e: + except self.printer.command_error as e: self.finalize(False) raise def report_z_status(self, warn_no_change=False, prev_pos=None): -- cgit v1.2.3-70-g09d2