gh-rel: bugfix

This commit is contained in:
Miao Wang 2021-03-22 14:33:26 +08:00
parent ed075641e9
commit ab221923e0

View File

@ -87,12 +87,12 @@ def downloading_worker(q):
if item is None: if item is None:
break break
url, dst_file, working_dir, updated = item url, dst_file, working_dir, updated, remote_size = item
print("downloading", url, "to", print("downloading", url, "to",
dst_file.relative_to(working_dir), flush=True) dst_file.relative_to(working_dir), flush=True)
try: try:
do_download(url, dst_file, updated) do_download(url, dst_file, updated, remote_size)
except Exception: except Exception:
print("Failed to download", url, flush=True) print("Failed to download", url, flush=True)
if dst_file.is_file(): if dst_file.is_file():