mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 12:51:18 +00:00
Add more verbose error in case of network issues
This commit is contained in:
parent
d2023c39ae
commit
3c8f41b1d2
@ -54,7 +54,7 @@ class Connection:
|
||||
log.info("Connecting...")
|
||||
await self.protocol.connect(self.address)
|
||||
except OSError as e:
|
||||
log.warning(e) # TODO: Remove
|
||||
log.warning(f"Unable to connect due to network issues: {e}")
|
||||
self.protocol.close()
|
||||
await asyncio.sleep(1)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user