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,8 +104,8 @@ def retry_range(retries, force_retry=True):
|
||||||
|
|
||||||
# We need at least one iteration even if the retries are 0
|
# We need at least one iteration even if the retries are 0
|
||||||
# when force_retry is True.
|
# when force_retry is True.
|
||||||
if force_retry:
|
if force_retry and not (retries is None or retries < 0):
|
||||||
retries+=1
|
retries += 1
|
||||||
|
|
||||||
attempt = 0
|
attempt = 0
|
||||||
while attempt != retries:
|
while attempt != retries:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user