mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-06 21:20:22 +03:00
Bring back the mighty Number of retries reached 0
This commit is contained in:
parent
39dc886816
commit
67de9f9f3b
|
@ -455,8 +455,8 @@ class TelegramBareClient:
|
||||||
with self._reconnect_lock:
|
with self._reconnect_lock:
|
||||||
self._reconnect()
|
self._reconnect()
|
||||||
|
|
||||||
raise RuntimeError('Giving up on {} after {} failed attemps.'.format(
|
raise RuntimeError('Number of retries reached 0 for {}.'.format(
|
||||||
[type(x).__name__ for x in requests], retries
|
[type(x).__name__ for x in requests]
|
||||||
))
|
))
|
||||||
|
|
||||||
# Let people use client.invoke(SomeRequest()) instead client(...)
|
# Let people use client.invoke(SomeRequest()) instead client(...)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user