mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-27 20:37:54 +00:00
Add an extra warning in case connection fails
This commit is contained in:
parent
8b364202c3
commit
84492fb942
@ -66,6 +66,7 @@ class Connection:
|
|||||||
))
|
))
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
|
log.warning("Connection failed! Trying again...")
|
||||||
raise TimeoutError
|
raise TimeoutError
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user