Keep the fetch-failure handler alive when the forge API is down #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-fetch-handler"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
cli._handle_fetch_errorcounts consecutive failed runs and opens an issue after repeated fetch failures. Both steps call the Forgejo API, and the API being unavailable is exactly when a fetch failure is most likely. Arequests.RequestExceptionfrom those calls used to crash the handler with a traceback.With this change:
Could not check or report repeated failures: <redacted error>, and returns exit code 1.<error> (previous consecutive failed runs: N)). The issue threshold (streak >= 2) is also unchanged.Tests
failed_run_streakraisesConnectionError). The handler returns 1 without raising.🤖 Generated with Claude Code