mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-06-30 23:12:45 +00:00
github-release: print error more friendly
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
This commit is contained in:
parent
ff92ed07f5
commit
d8f9150542
@ -207,7 +207,7 @@ def main():
|
||||
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
|
||||
@ -236,6 +236,7 @@ def main():
|
||||
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('**/*'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user