mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-27 09:12:34 -04:00
...
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ def printf(*args, **kw):
|
||||
sys.stdout.flush()
|
||||
|
||||
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user