network: follow-up 38ab7ee554
This commit is contained in:
parent
2174fc0676
commit
019884a98b
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user