mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-07-01 07:22: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()
|
r.raise_for_status()
|
||||||
releases = r.json()
|
releases = r.json()
|
||||||
except:
|
except:
|
||||||
traceback.print_exc()
|
print(f"Error: cannot download metadata for {repo}:\n{traceback.format_exc()}")
|
||||||
break
|
break
|
||||||
|
|
||||||
n_downloaded = 0
|
n_downloaded = 0
|
||||||
@ -236,6 +236,7 @@ def main():
|
|||||||
for i in range(args.workers):
|
for i in range(args.workers):
|
||||||
task_queue.put(None)
|
task_queue.put(None)
|
||||||
|
|
||||||
|
# XXX: this does not work because `cleaning` is always False when `REPO`` is not empty
|
||||||
if cleaning:
|
if cleaning:
|
||||||
local_filelist = []
|
local_filelist = []
|
||||||
for local_file in working_dir.glob('**/*'):
|
for local_file in working_dir.glob('**/*'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user