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:
@@ -57,6 +57,7 @@ class Connection:
|
||||
else:
|
||||
break
|
||||
else:
|
||||
log.warning("Connection failed! Trying again...")
|
||||
raise TimeoutError
|
||||
|
||||
def close(self):
|
||||
|
Reference in New Issue
Block a user