aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/exclude_object.py
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/extras/exclude_object.py')
-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)