mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-01-31 08:03:29 -05:00
...
This commit is contained in:
parent
2153e684d5
commit
6ce194ecc2
@ -23,7 +23,7 @@ def setenv(key, val):
|
||||
os.environ[key] = os.path.expandvars(val)
|
||||
|
||||
|
||||
def download_with_retry(url: str | Request, count: int = 5) -> bytes:
|
||||
def download_with_retry(url: 'str | Request', count: int = 5) -> bytes:
|
||||
for i in range(count):
|
||||
try:
|
||||
print('Downloading', getattr(url, 'full_url', url), flush=True)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user