Browse Source

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

regtest_lnd
SomberNight 6 years ago
parent
commit
6cc70bc7a2
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/interface.py

2
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)

Loading…
Cancel
Save