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:
Andrei Ignat 2023-11-22 17:53:38 +01:00 committed by GitHub
parent bb4711c5d3
commit ea2f6bc0f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)