cli.py: main() has no exception handling — raw tracebacks to user #141
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/hottea#141
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
src/hottea/cli.py—main()runs the full pipeline without any exception handling. If any step fails (config missing, git repo invalid, Forgejo API down), the user gets a raw Python traceback instead of a clean error message.Known exceptions that should be caught:
ConfigError(missing env vars)InvalidRepoError,GitRepoError(git issues)ForgejoAuthError,ForgejoNotFoundError,ForgejoError(API issues)Recommendation: wrap the pipeline body in a try/except:
Ref: PR #140