From 46ee920b9399e54ce3b1558088bed35ba1245a20 Mon Sep 17 00:00:00 2001 From: Maksim Bolgov <57844100+MRX8024@users.noreply.github.com> Date: Sun, 6 Apr 2025 04:36:35 +0300 Subject: [PATCH] axis_twist_compensation: Fix AttributeError on klippy connect state (#6881) Object 'configfile' has no attribute 'error' Signed-off-by: Maksim Bolgov --- klippy/extras/axis_twist_compensation.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/klippy/extras/axis_twist_compensation.py b/klippy/extras/axis_twist_compensation.py index 17437a97..908ac4da 100644 --- a/klippy/extras/axis_twist_compensation.py +++ b/klippy/extras/axis_twist_compensation.py @@ -125,9 +125,8 @@ class Calibrater: def _handle_connect(self): self.probe = self.printer.lookup_object('probe', None) - if (self.probe is None): - config = self.printer.lookup_object('configfile') - raise config.error( + if self.probe is None: + raise self.printer.config_error( "AXIS_TWIST_COMPENSATION requires [probe] to be defined") self.lift_speed = self.probe.get_probe_params()['lift_speed'] self.probe_x_offset, self.probe_y_offset, _ = \