fix: add top-level exception handler to main() #169

Merged
fuzzy merged 1 commit from fix/141-cli-exception-handling into main 2026-07-06 09:07:23 +00:00
Owner

Wraps main() in _entry_point() with a top-level try/except that catches all exceptions, logs them via logger.exception(), and prints a user-friendly message to stderr instead of a raw traceback.

Closes #141

Wraps `main()` in `_entry_point()` with a top-level try/except that catches all exceptions, logs them via `logger.exception()`, and prints a user-friendly message to stderr instead of a raw traceback. Closes #141
fix(cli): add top-level exception handler to main()
All checks were successful
CI / lint-and-test (pull_request) Successful in 1m28s
8a616a9fd4
Wrap main() in _entry_point() that catches all exceptions,
logs them, and prints a user-friendly message instead of
a raw traceback.

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

Audit Review — PR #169

Clean fix for #141. _entry_point() wraps main() with top-level exception handler. Full traceback logged via logger.exception(), user gets friendly message + hint to use --verbose. Pragmatic approach for a CLI tool.

No suggestions.

Summary

Result: COMMENT — no issues found.

## Audit Review — PR #169 Clean fix for #141. `_entry_point()` wraps `main()` with top-level exception handler. Full traceback logged via `logger.exception()`, user gets friendly message + hint to use `--verbose`. Pragmatic approach for a CLI tool. No suggestions. ## Summary **Result:** COMMENT — no issues found.
the.auditor left a comment

APPROVED. No more raw tracebacks to users, closes #141. Merge when ready.

APPROVED. No more raw tracebacks to users, closes #141. Merge when ready.
fuzzy merged commit 8a616a9fd4 into main 2026-07-06 09:07:22 +00:00
fuzzy deleted branch fix/141-cli-exception-handling 2026-07-06 09:07:23 +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!169
No description provided.