fix: survive a single forge failure

This commit is contained in:
Abdessamad Derraz committed 2026-08-08 11:23:49 +02:00
1 parent 8957f86d46
commit 2ebe29a449
2 files changed
+55 -1

No files matched your search

+10 -1
View File
@@ -1182,7 +1182,16 @@ def main() -> None:
reports = []
for name, profile in selected.items():
report = build_report(name, profile, args.cache_dir, args.offline)
try:
report = build_report(name, profile, args.cache_dir, args.offline)
except upstream.RateLimitError:
raise
except upstream.UpstreamError as exc:
# One unreachable forge must not abandon the other profiles.
print(f"{name}: {exc}", file=sys.stderr)
report = ProfileReport(
name=name, entries=[], counts={}, skipped=f"upstream error: {exc}"
)
reports.append(report)
if writes:
_apply_writes(args, name, profile, report)