2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-10-11 14:06:31 +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: else:
break break
else: else:
log.warning("Connection failed! Trying again...")
raise TimeoutError raise TimeoutError
def close(self): def close(self):