aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaksim Bolgov <57844100+MRX8024@users.noreply.github.com>2025-04-06 04:36:35 +0300
committerGitHub <noreply@github.com>2025-04-05 21:36:35 -0400
commit46ee920b9399e54ce3b1558088bed35ba1245a20 (patch)
tree2afa80fe5ad6f8eb5fc2266d4b27f5355ce7d8eb
parent3a9e9a4bef8e6e04c743a6330249568686257f0c (diff)
downloadkutter-46ee920b9399e54ce3b1558088bed35ba1245a20.tar.gz
kutter-46ee920b9399e54ce3b1558088bed35ba1245a20.tar.xz
kutter-46ee920b9399e54ce3b1558088bed35ba1245a20.zip
axis_twist_compensation: Fix AttributeError on klippy connect state (#6881)
Object 'configfile' has no attribute 'error' Signed-off-by: Maksim Bolgov <maksim8024@gmail.com>
-rw-r--r--klippy/extras/axis_twist_compensation.py5
1 files 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, _ = \