Skip to content

Commit

Permalink
github-release: print error more friendly
Browse files Browse the repository at this point in the history
Signed-off-by: Shengqi Chen <[email protected]>
  • Loading branch information
Harry-Chen committed Apr 24, 2024
1 parent ff92ed0 commit d8f9150
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion github-release.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def link_latest(name, repo_dir):
r.raise_for_status()
releases = r.json()
except:
traceback.print_exc()
print(f"Error: cannot download metadata for {repo}:\n{traceback.format_exc()}")
break

n_downloaded = 0
Expand Down Expand Up @@ -236,6 +236,7 @@ def link_latest(name, repo_dir):
for i in range(args.workers):
task_queue.put(None)

# XXX: this does not work because `cleaning` is always False when `REPO`` is not empty
if cleaning:
local_filelist = []
for local_file in working_dir.glob('**/*'):
Expand Down

0 comments on commit d8f9150

Please sign in to comment.