interface: when disconnecting due to RPCError, don't dump traceback

This commit is contained in:
SomberNight 2019-05-14 15:58:02 +02:00
parent 003e6c3e79
commit 6cc70bc7a2
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -306,6 +306,8 @@ class Interface(Logger):
return await func(self, *args, **kwargs)
except GracefulDisconnect as e:
self.logger.info(f"disconnecting gracefully. {repr(e)}")
except aiorpcx.jsonrpc.RPCError as e:
self.logger.error(f"disconnecting due to {repr(e)}")
finally:
await self.network.connection_down(self)
self.got_disconnected.set_result(1)