mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 09:45:18 +00:00
lnpeer: do not dump exceptions raised in initialize
This commit is contained in:
parent
874efc125d
commit
d319680d16
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue