diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-06-11 19:46:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-11 19:46:02 (GMT) |
commit | 05c73e1cd872843952f0e769265ec3d9535488f6 (patch) | |
tree | 4af1029204152e7a5f2a2b5aa9f00d6c0e5f744a /Misc | |
parent | 87e493b11a6791777303ba6eda4027df99b7ffcb (diff) | |
download | cpython-05c73e1cd872843952f0e769265ec3d9535488f6.zip cpython-05c73e1cd872843952f0e769265ec3d9535488f6.tar.gz cpython-05c73e1cd872843952f0e769265ec3d9535488f6.tar.bz2 |
[3.11] gh-105375: Improve PyErr_WarnExplicit() error handling (GH-105610) (#105660)
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>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/C API/2023-06-09-23-34-25.gh-issue-105375.n7amiF.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2023-06-09-23-34-25.gh-issue-105375.n7amiF.rst b/Misc/NEWS.d/next/C API/2023-06-09-23-34-25.gh-issue-105375.n7amiF.rst new file mode 100644 index 0000000..b9f9549 --- /dev/null +++ b/Misc/NEWS.d/next/C API/2023-06-09-23-34-25.gh-issue-105375.n7amiF.rst @@ -0,0 +1,2 @@ +Fix a bug in :c:func:`PyErr_WarnExplicit` where an exception could end up +being overwritten if the API failed internally. |