mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-02 03:00:15 +03:00
minor fix
This commit is contained in:
parent
fdde26551b
commit
6bbef75d53
|
@ -104,7 +104,7 @@ def retry_range(retries, force_retry=True):
|
|||
|
||||
# We need at least one iteration even if the retries are 0
|
||||
# when force_retry is True.
|
||||
if force_retry:
|
||||
if force_retry and not (retries is None or retries < 0):
|
||||
retries += 1
|
||||
|
||||
attempt = 0
|
||||
|
|
Loading…
Reference in New Issue
Block a user