network: follow-up 38ab7ee554
This commit is contained in:
@@ -775,7 +775,7 @@ class Network(PrintError):
|
||||
def catch_server_exceptions(func):
|
||||
async def wrapper(self, *args, **kwargs):
|
||||
try:
|
||||
await func(self, *args, **kwargs)
|
||||
return await func(self, *args, **kwargs)
|
||||
except aiorpcx.jsonrpc.CodeMessageError as e:
|
||||
raise UntrustedServerReturnedError(original_exception=e)
|
||||
return wrapper
|
||||
|
||||
Reference in New Issue
Block a user