fix: narrow broad Exception catch in validate_environment #171

Merged
fuzzy merged 1 commit from fix/147-validate-broad-exception into main 2026-07-06 09:15:43 +00:00
Owner

Replaces broad except Exception with except (InvalidRepoError, GitNotFoundError) when validating repository paths in validate_environment().

Closes #147

Replaces broad `except Exception` with `except (InvalidRepoError, GitNotFoundError)` when validating repository paths in `validate_environment()`. Closes #147
fix(cli): narrow broad Exception catch in validate_environment
All checks were successful
CI / lint-and-test (pull_request) Successful in 1m25s
441b755cfe
Replace broad 'except Exception' with specific
'except (InvalidRepoError, GitNotFoundError)' when
validating repository paths.

Closes #147
fuzzy scheduled this pull request to auto merge when all checks succeed 2026-07-06 09:15:37 +00:00
the.auditor left a comment

Audit Review — PR #171

Clean fix for #147. except Exception narrowed to (InvalidRepoError, GitNotFoundError) in validate_environment(). Proper imports from hottea.exceptions.

No suggestions.

Summary

Result: COMMENT — no issues found.

## Audit Review — PR #171 Clean fix for #147. `except Exception` narrowed to `(InvalidRepoError, GitNotFoundError)` in `validate_environment()`. Proper imports from `hottea.exceptions`. No suggestions. ## Summary **Result:** COMMENT — no issues found.
the.auditor left a comment

APPROVED. Exception handling tightened, closes #147. Merge when ready.

APPROVED. Exception handling tightened, closes #147. Merge when ready.
fuzzy merged commit 441b755cfe into main 2026-07-06 09:15:43 +00:00
fuzzy deleted branch fix/147-validate-broad-exception 2026-07-06 09:15:44 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 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!171
No description provided.