mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-31 10:19:48 +03:00
minor fix
This commit is contained in:
parent
fdde26551b
commit
6bbef75d53
|
@ -104,8 +104,8 @@ 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:
|
||||
retries+=1
|
||||
if force_retry and not (retries is None or retries < 0):
|
||||
retries += 1
|
||||
|
||||
attempt = 0
|
||||
while attempt != retries:
|
||||
|
|
Loading…
Reference in New Issue
Block a user