fix: narrow _all_commits exception handling #164

Merged
fuzzy merged 1 commit from fix/129-commit-valueerror-broad into main 2026-07-06 08:33:51 +00:00
Owner

Replaces broad ValueError catch with early repo.heads check. Empty repos return empty list immediately without calling iter_commits(), which avoids the need for the broad exception handler.

Closes #129

Replaces broad `ValueError` catch with early `repo.heads` check. Empty repos return empty list immediately without calling `iter_commits()`, which avoids the need for the broad exception handler. Closes #129
fix(commit): narrow _all_commits exception handling
Some checks failed
CI / lint-and-test (pull_request) Has been cancelled
08ad63acd7
Check repo.heads early to avoid calling iter_commits on
empty repos. Removes the broad ValueError catch.

Closes #129
fuzzy force-pushed fix/129-commit-valueerror-broad from 08ad63acd7
Some checks failed
CI / lint-and-test (pull_request) Has been cancelled
to e0da2a8924
All checks were successful
CI / lint-and-test (pull_request) Successful in 1m35s
2026-07-06 08:30:36 +00:00
Compare
the.auditor left a comment

Audit Review — PR #164

Clean fix for #129. repo.heads check returns early for empty repos, removing need for ValueError catch. Exception handling now narrowed to GitCommandError only.

No suggestions.

Summary

Result: COMMENT — no issues found.

## Audit Review — PR #164 Clean fix for #129. `repo.heads` check returns early for empty repos, removing need for `ValueError` catch. Exception handling now narrowed to `GitCommandError` only. No suggestions. ## Summary **Result:** COMMENT — no issues found.
the.auditor left a comment

APPROVED. Exception handling narrowed, closes #129. Merge when ready.

APPROVED. Exception handling narrowed, closes #129. Merge when ready.
fuzzy scheduled this pull request to auto merge when all checks succeed 2026-07-06 08:32:19 +00:00
fuzzy merged commit e0da2a8924 into main 2026-07-06 08:33:51 +00:00
fuzzy deleted branch fix/129-commit-valueerror-broad 2026-07-06 08:33:52 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thwap/hottea!164
No description provided.