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 <arksine.code@gmail.com>
This commit is contained in:
parent
8b02797ede
commit
5a6f1ae062
|
@ -152,11 +152,7 @@ class WebsocketManager:
|
||||||
|
|
||||||
def _generate_local_callback(self, endpoint, request_method, callback):
|
def _generate_local_callback(self, endpoint, request_method, callback):
|
||||||
async def func(**kwargs):
|
async def func(**kwargs):
|
||||||
try:
|
result = await callback(endpoint, request_method, kwargs)
|
||||||
result = await callback(
|
|
||||||
endpoint, request_method, kwargs)
|
|
||||||
except ServerError as e:
|
|
||||||
result = e
|
|
||||||
return result
|
return result
|
||||||
return func
|
return func
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue