aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/webhooks.py
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/webhooks.py')
-rw-r--r--klippy/webhooks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/webhooks.py b/klippy/webhooks.py
index dfa2a491..1e8022e4 100644
--- a/klippy/webhooks.py
+++ b/klippy/webhooks.py
@@ -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"