Skip to content

Commit

Permalink
github-release: bug fixes
Browse files Browse the repository at this point in the history
- show traceback inside "Failed to download"
- fix missing arg for do_download
  • Loading branch information
taoky committed Dec 4, 2023
1 parent 00f563b commit fc4b1fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions github-release/tunasync/github-release.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,10 @@ def downloading_worker(q):
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)
print("Failed to download", url, "with this exception:",flush=True)
traceback.print_exc()

q.task_done()

Expand Down

0 comments on commit fc4b1fa

Please sign in to comment.