]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-105375: Improve PyErr_WarnExplicit() error handling (GH-105610) (#105659)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 11 Jun 2023 19:51:30 +0000 (12:51 -0700)
committerGitHub <noreply@github.com>
Sun, 11 Jun 2023 19:51:30 +0000 (19:51 +0000)
commitdb5022c16f94622285eda5f036450e34f5f415ce
tree5f670e93b0e03b74cc7e43854d29b829f0001cbb
parentc14f6ea7e44790d0518c3a0c17b8b1336f3a1602
[3.12] gh-105375: Improve PyErr_WarnExplicit() error handling (GH-105610) (#105659)

Bail on first error to prevent exceptions from possibly being
overwritten.
(cherry picked from commit 567d6ae8e77579173510fc948ac06b2ababf3d40)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Misc/NEWS.d/next/C API/2023-06-09-23-34-25.gh-issue-105375.n7amiF.rst [new file with mode: 0644]
Python/_warnings.c