aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
diff options
context:
space:
mode:
authorAndrei Ignat <andrei@ignat.se>2023-11-22 17:53:38 +0100
committerGitHub <noreply@github.com>2023-11-22 11:53:38 -0500
commitea2f6bc0f544132738c7f052ffcc586fa884a19a (patch)
tree1305297ef9381f221ea1d2b42148df1a85560d52 /klippy
parentbb4711c5d31e8159945f945c662e6668059a174f (diff)
downloadkutter-ea2f6bc0f544132738c7f052ffcc586fa884a19a.tar.gz
kutter-ea2f6bc0f544132738c7f052ffcc586fa884a19a.tar.xz
kutter-ea2f6bc0f544132738c7f052ffcc586fa884a19a.zip
exclude_object: Don't use gcmd.respond_error() (#6407)
gcmd.respond_error() has been deprecated: 61524542d20e50c4866836d6ed23ca03521ffb15 Signed-off-by: Andrei Ignat <andrei@ignat.se>
Diffstat (limited to 'klippy')
-rw-r--r--klippy/extras/exclude_object.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/exclude_object.py b/klippy/extras/exclude_object.py
index 0a68d9b5..19401279 100644
--- a/klippy/extras/exclude_object.py
+++ b/klippy/extras/exclude_object.py
@@ -234,7 +234,7 @@ class ExcludeObject:
elif current:
if not self.current_object:
- gcmd.respond_error('There is no current object to cancel')
+ raise self.gcode.error('There is no current object to cancel')
else:
self._exclude_object(self.current_object)