8000 gh-134170: Add colorization to unraisable exceptions by ZeroIntensity · Pull Request #134183 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-134170: Add colorization to unraisable exceptions #134183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Clear exceptions upon failure.
  • Loading branch information
ZeroIntensity committed May 18, 2025
commit d2e621a86118f9188eadb7ee8fa38412c857ce34
1 change: 1 addition & 0 deletions Python/errors.c
Original file line number Diff line number Diff line change
Expand Up @@ -1495,6 +1495,7 @@ write_unraisable_exc_file(PyThreadState *tstate, PyObject *exc_type,
}
}
// traceback module failed, fall back to pure C
_PyErr_Clear(tstate);
Py_XDECREF(print_exception_fn);

if (exc_tb != NULL && exc_tb != Py_None) {
Expand Down
0