mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-02 19:20:09 +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:
|
if retries == 0 and force_retry:
|
||||||
yield 1
|
yield 1
|
||||||
|
|
||||||
# If retries are non 0 then itetrate
|
# If retries are non 0 then iterate
|
||||||
attempt = 0
|
attempt = 0
|
||||||
while attempt != retries:
|
while attempt != retries:
|
||||||
yield 1 + attempt
|
|
||||||
attempt += 1
|
attempt += 1
|
||||||
|
yield attempt
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
async def _maybe_await(value):
|
async def _maybe_await(value):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user