mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-02 03:00:15 +03:00
commit fixes
This commit is contained in:
parent
aa498882f8
commit
4041f417f4
|
@ -107,11 +107,12 @@ def retry_range(retries, force_retry=True):
|
|||
if retries == 0 and force_retry:
|
||||
yield 1
|
||||
|
||||
# If retries are non 0 then itetrate
|
||||
# If retries are non 0 then iterate
|
||||
attempt = 0
|
||||
while attempt != retries:
|
||||
yield 1 + attempt
|
||||
attempt += 1
|
||||
yield attempt
|
||||
|
||||
|
||||
|
||||
async def _maybe_await(value):
|
||||
|
|
Loading…
Reference in New Issue
Block a user