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:
Arksine 2020-08-17 20:16:03 -04:00
parent 8b02797ede
commit 5a6f1ae062
1 changed files with 1 additions and 5 deletions

View File

@ -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