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:
@@ -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):
|
||||||
|
Reference in New Issue
Block a user