]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-143547: Fix PyErr_FormatUnraisable() fallback (#143557) (#143603)
authorVictor Stinner <vstinner@python.org>
Fri, 9 Jan 2026 15:10:50 +0000 (16:10 +0100)
committerGitHub <noreply@github.com>
Fri, 9 Jan 2026 15:10:50 +0000 (16:10 +0100)
commit1d0baf1ae48f98b61cc869a82e1b7206298f653f
treeda6d92cd6e52e016c2b1cb382be84c33488dc4bf
parentf264f103d457000fd147086bc96e0a8eed3975fa
[3.14] gh-143547: Fix PyErr_FormatUnraisable() fallback (#143557) (#143603)

gh-143547: Fix PyErr_FormatUnraisable() fallback (#143557)

Hold a strong reference to 'hook' while calling the default
unraisable took to log hook failure.

(cherry picked from commit 39a2bcf949095bd603f7b73f15b5b478dbb49ba9)
Lib/test/test_sys.py
Misc/NEWS.d/next/Library/2026-01-08-14-53-46.gh-issue-143547.wHBVlr.rst [new file with mode: 0644]
Python/errors.c