mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-04 04:45:16 +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):
|
async def query_gossip(self):
|
||||||
try:
|
try:
|
||||||
await asyncio.wait_for(self.initialized, LN_P2P_NETWORK_TIMEOUT)
|
await asyncio.wait_for(self.initialized, LN_P2P_NETWORK_TIMEOUT)
|
||||||
except asyncio.TimeoutError as e:
|
except Exception as e:
|
||||||
raise GracefulDisconnect("initialize timed out") from e
|
raise GracefulDisconnect(f"Failed to initialize: {e}") from e
|
||||||
if self.lnworker == self.lnworker.network.lngossip:
|
if self.lnworker == self.lnworker.network.lngossip:
|
||||||
try:
|
try:
|
||||||
ids, complete = await asyncio.wait_for(self.get_channel_range(), LN_P2P_NETWORK_TIMEOUT)
|
ids, complete = await asyncio.wait_for(self.get_channel_range(), LN_P2P_NETWORK_TIMEOUT)
|
||||||
|
|
Loading…
Add table
Reference in a new issue