1
0

network: follow-up 38ab7ee554

This commit is contained in:
SomberNight
2019-02-12 19:23:58 +01:00
parent 2174fc0676
commit 019884a98b

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