exceptions.py: GitConfigError defined but never raised #126

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

src/hottea/exceptions.py defines GitConfigError but it is never raised anywhere in the codebase. get_user_name() and get_user_email() in src/hottea/git.py let subprocess.CalledProcessError propagate instead of wrapping in GitConfigError.

Options:

  1. Remove GitConfigError if unused
  2. Use it: wrap config failures in get_user_name()/get_user_email() with raise GitConfigError(...) from e

Ref: PR #124

`src/hottea/exceptions.py` defines `GitConfigError` but it is never raised anywhere in the codebase. `get_user_name()` and `get_user_email()` in `src/hottea/git.py` let `subprocess.CalledProcessError` propagate instead of wrapping in `GitConfigError`. Options: 1. Remove `GitConfigError` if unused 2. Use it: wrap config failures in `get_user_name()`/`get_user_email()` with `raise GitConfigError(...) from e` Ref: PR #124
fuzzy closed this issue 2026-07-06 08:23:54 +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#126
No description provided.