mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-12-26 00:52:46 +00:00
dart: print more errors
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
This commit is contained in:
parent
b927af1b7a
commit
a7f40c7813
|
|
@ -239,7 +239,15 @@ def main():
|
||||||
if not (pkgs_url := resp["nextUrl"]):
|
if not (pkgs_url := resp["nextUrl"]):
|
||||||
break
|
break
|
||||||
|
|
||||||
|
# wait for all packages to be handled
|
||||||
|
for f in concurrent.futures.as_completed(pkg_futures):
|
||||||
|
try:
|
||||||
|
f.result()
|
||||||
|
except Exception as e:
|
||||||
|
logger.error(f"Error handling package: {e}")
|
||||||
|
|
||||||
pkg_executor.shutdown(wait=True)
|
pkg_executor.shutdown(wait=True)
|
||||||
|
download_executor.shutdown(wait=True)
|
||||||
|
|
||||||
if clean:
|
if clean:
|
||||||
# clean up obsolete packages
|
# clean up obsolete packages
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue