2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-10-03 13:26:07 +00:00

Add a warning in case the connection failed

This commit is contained in:
Dan
2018-06-17 19:17:56 +02:00
parent 5d58ff2d94
commit b249062d25

View File

@@ -57,6 +57,7 @@ class Connection:
else:
break
else:
log.warning("Connection failed! Trying again...")
raise TimeoutError
def close(self):