mirror of
git://soft.sys114.com/klipper
synced 2026-02-04 16:40:37 +09:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user