exclude_object: Don't use gcmd.respond_error() (#6407)
gcmd.respond_error() has been deprecated: 61524542d2
Signed-off-by: Andrei Ignat <andrei@ignat.se>
This commit is contained in:
parent
bb4711c5d3
commit
ea2f6bc0f5
|
@ -234,7 +234,7 @@ class ExcludeObject:
|
||||||
|
|
||||||
elif current:
|
elif current:
|
||||||
if not self.current_object:
|
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:
|
else:
|
||||||
self._exclude_object(self.current_object)
|
self._exclude_object(self.current_object)
|
||||||
|
|
Loading…
Reference in New Issue