From 5a6f1ae062e416527b5766522978743741ceda1c Mon Sep 17 00:00:00 2001 From: Arksine Date: Mon, 17 Aug 2020 20:16:03 -0400 Subject: [PATCH] websockets: don't handle ServerError in local callbacks They can propogate back to the JSONRPC.execute_method() where they will be correctly handled. Signed-off-by: Eric Callahan --- moonraker/websockets.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/moonraker/websockets.py b/moonraker/websockets.py index ed4b9f6..8b92b38 100644 --- a/moonraker/websockets.py +++ b/moonraker/websockets.py @@ -152,11 +152,7 @@ class WebsocketManager: def _generate_local_callback(self, endpoint, request_method, callback): async def func(**kwargs): - try: - result = await callback( - endpoint, request_method, kwargs) - except ServerError as e: - result = e + result = await callback(endpoint, request_method, kwargs) return result return func