commit d319680d166da130396af24a0019f85c670b2b80
parent 874efc125db65ec56b833d4cf909cef4b6336154
Author: ThomasV <thomasv@electrum.org>
Date: Sat, 22 Feb 2020 16:00:38 +0100
lnpeer: do not dump exceptions raised in initialize
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/electrum/lnpeer.py b/electrum/lnpeer.py
@@ -323,8 +323,8 @@ class Peer(Logger):
async def query_gossip(self):
try:
await asyncio.wait_for(self.initialized, LN_P2P_NETWORK_TIMEOUT)
- except asyncio.TimeoutError as e:
- raise GracefulDisconnect("initialize timed out") from e
+ except Exception as e:
+ raise GracefulDisconnect(f"Failed to initialize: {e}") from e
if self.lnworker == self.lnworker.network.lngossip:
try:
ids, complete = await asyncio.wait_for(self.get_channel_range(), LN_P2P_NETWORK_TIMEOUT)