Skip to content

Commit d38d23f

Browse files
committed
Log in case connection fails (to test ipv6)
1 parent ade1c2f commit d38d23f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pyrogram/connection/connection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ def connect(self):
5353
try:
5454
log.info("Connecting...")
5555
self.connection.connect(self.address)
56-
except OSError:
56+
except OSError as e:
57+
log.warning(e) # TODO: Remove
5758
self.connection.close()
5859
time.sleep(1)
5960
else:

0 commit comments

Comments
 (0)