tinterface: when disconnecting due to RPCError, don't dump traceback - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 6cc70bc7a216afd129d24992029dcbd8e9dc861b DIR parent 003e6c3e7966d1e22346a2b115bcaa6171ebfd08 HTML 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: M electrum/interface.py | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) --- DIR diff --git a/electrum/interface.py b/electrum/interface.py t@@ -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)