commit 6cc70bc7a216afd129d24992029dcbd8e9dc861b
parent 003e6c3e7966d1e22346a2b115bcaa6171ebfd08
Author: SomberNight <somber.night@protonmail.com>
Date: Tue, 14 May 2019 15:58:02 +0200
interface: when disconnecting due to RPCError, don't dump traceback
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/electrum/interface.py b/electrum/interface.py
@@ -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)