From 6cc70bc7a216afd129d24992029dcbd8e9dc861b Mon Sep 17 00:00:00 2001 From: SomberNight Date: Tue, 14 May 2019 15:58:02 +0200 Subject: [PATCH] interface: when disconnecting due to RPCError, don't dump traceback --- electrum/interface.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/electrum/interface.py b/electrum/interface.py index 55ac7422d..22cfad561 100644 --- 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)