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):
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue