Browse Source
interface: when disconnecting due to RPCError, don't dump traceback
regtest_lnd
SomberNight
6 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
2 additions and
0 deletions
-
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) |
|
|
|