mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 01:11:35 +00:00
interface: when disconnecting due to RPCError, don't dump traceback
This commit is contained in:
parent
003e6c3e79
commit
6cc70bc7a2
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue