From ab221923e0082f55bfe45fb74ba41cee3e275089 Mon Sep 17 00:00:00 2001 From: Miao Wang Date: Mon, 22 Mar 2021 14:33:26 +0800 Subject: [PATCH] gh-rel: bugfix --- github-release.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github-release.py b/github-release.py index 19930ad..c9e7cc0 100755 --- a/github-release.py +++ b/github-release.py @@ -87,12 +87,12 @@ def downloading_worker(q): if item is None: break - url, dst_file, working_dir, updated = item + url, dst_file, working_dir, updated, remote_size = item print("downloading", url, "to", dst_file.relative_to(working_dir), flush=True) try: - do_download(url, dst_file, updated) + do_download(url, dst_file, updated, remote_size) except Exception: print("Failed to download", url, flush=True) if dst_file.is_file():