mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 04:30: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:
|
||||
self._reconnect()
|
||||
|
||||
raise RuntimeError('Giving up on {} after {} failed attemps.'.format(
|
||||
[type(x).__name__ for x in requests], retries
|
||||
raise RuntimeError('Number of retries reached 0 for {}.'.format(
|
||||
[type(x).__name__ for x in requests]
|
||||
))
|
||||
|
||||
# Let people use client.invoke(SomeRequest()) instead client(...)
|
||||
|
|
Loading…
Reference in New Issue
Block a user