lnpeer: do not dump exceptions raised in initialize

This commit is contained in:
ThomasV 2020-02-22 16:00:38 +01:00
parent 874efc125d
commit d319680d16

View file

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