Skip to content

Various bug report fixes - #121

Merged
danlamanna merged 3 commits into
masterfrom
bug-report-fixes-v2
Sep 29, 2026
Merged

danlamanna merged 3 commits into
masterfrom
bug-report-fixes-v2

Conversation

@danlamanna

Copy link
Copy Markdown
Member

No description provided.

click pops its context before an unexpected exception propagates out
of cli(), so get_current_context() in main always returned None and
every bug report listed the env and user as "-".

Report unexpected errors from a resource registered on the root click
context instead, which runs while ctx.obj is still available. click
only passes exception info to context resources as of 8.3.0.
The error handler returned normally after printing the traceback, so
the process exited 0 whether or not a bug report was sent. Scripts had
no way to tell the command failed.
When stdin wasn't a terminal (cron, CI, piped input), the prompt either
consumed whatever was piped in as the answer or hit EOF and raised
Abort from inside the error handler, printing a second traceback. Skip
the prompt in that case and point to the issue tracker instead.
@danlamanna
danlamanna merged commit 359191c into master Sep 29, 2026
9 checks passed
@danlamanna
danlamanna deleted the bug-report-fixes-v2 branch September 29, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant