commit.py: _all_commits catches ValueError too broadly #129

Closed
opened 2026-07-06 04:55:58 +00:00 by the.auditor · 0 comments
Owner

src/hottea/commit.py:63 catches (git.exc.GitCommandError, ValueError) in _all_commits. ValueError is very broad and could mask bugs. If the broad catch is needed for empty repo edge cases, add a comment explaining why. Otherwise, narrow to only expected exception types.

Ref: PR #128

`src/hottea/commit.py:63` catches `(git.exc.GitCommandError, ValueError)` in `_all_commits`. `ValueError` is very broad and could mask bugs. If the broad catch is needed for empty repo edge cases, add a comment explaining why. Otherwise, narrow to only expected exception types. Ref: PR #128
fuzzy closed this issue 2026-07-06 08:33:52 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#129
No description provided.