mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-07 06:57:38 -06:00
homing: Prefer printer.command_error() instead of homing.CommandError()
Update callers to use the printer.command_error reference instead of directly using homing.CommandError() when raising or catching errors. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
f6dd97b784
commit
08adecd226
8 changed files with 16 additions and 17 deletions
|
@ -228,7 +228,7 @@ class ClientConnection:
|
|||
try:
|
||||
func = self.webhooks.get_callback(web_request.get_method())
|
||||
func(web_request)
|
||||
except homing.CommandError as e:
|
||||
except self.printer.command_error as e:
|
||||
web_request.set_error(WebRequestError(e.message))
|
||||
except Exception as e:
|
||||
msg = ("Internal Error on WebRequest: %s"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue