mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-17 21:22:40 +00:00
Log in case connection fails (to test ipv6)
This commit is contained in:
parent
ade1c2f377
commit
d38d23f46d
@ -53,7 +53,8 @@ class Connection:
|
|||||||
try:
|
try:
|
||||||
log.info("Connecting...")
|
log.info("Connecting...")
|
||||||
self.connection.connect(self.address)
|
self.connection.connect(self.address)
|
||||||
except OSError:
|
except OSError as e:
|
||||||
|
log.warning(e) # TODO: Remove
|
||||||
self.connection.close()
|
self.connection.close()
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user