Skip to content

Commit

Permalink
exclude_object: Don't use gcmd.respond_error() (#6407)
Browse files Browse the repository at this point in the history
gcmd.respond_error() has been deprecated: 6152454

Signed-off-by: Andrei Ignat <[email protected]>
  • Loading branch information
TypQxQ authored Nov 22, 2023
1 parent bb4711c commit ea2f6bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion klippy/extras/exclude_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def cmd_EXCLUDE_OBJECT(self, gcmd):

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)
Expand Down

0 comments on commit ea2f6bc

Please sign in to comment.