diff options
author | Erlend E. Aasland <erlend.aasland@protonmail.com> | 2023-06-11 19:23:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-11 19:23:28 (GMT) |
commit | 567d6ae8e77579173510fc948ac06b2ababf3d40 (patch) | |
tree | c85ad7bfb8619b495fbb0c017e1ffeaf8b4ad532 /Misc/NEWS.d/next | |
parent | 3f7c0810f6158a7ff37be432f8d7f9511427489f (diff) | |
download | cpython-567d6ae8e77579173510fc948ac06b2ababf3d40.zip cpython-567d6ae8e77579173510fc948ac06b2ababf3d40.tar.gz cpython-567d6ae8e77579173510fc948ac06b2ababf3d40.tar.bz2 |
gh-105375: Improve PyErr_WarnExplicit() error handling (#105610)
Bail on first error to prevent exceptions from possibly being
overwritten.
Diffstat (limited to 'Misc/NEWS.d/next')
-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. |