network: follow-up 38ab7ee554

This commit is contained in:
SomberNight 2019-02-12 19:23:58 +01:00
parent 2174fc0676
commit 019884a98b
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

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