summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next/Library/2023-06-09-23-46-23.gh-issue-105375.9KaioS.rst
diff options
context:
space:
mode:
authorErlend E. Aasland <erlend.aasland@protonmail.com>2023-06-11 20:02:49 (GMT)
committerGitHub <noreply@github.com>2023-06-11 20:02:49 (GMT)
commit41cddc2e93a285b81fa30ac542b088bd9d0112e9 (patch)
tree327402188686f3424f35bfdee06895ef661e1095 /Misc/NEWS.d/next/Library/2023-06-09-23-46-23.gh-issue-105375.9KaioS.rst
parente8998e46a7ce8ad336e0941a6da6e50cb88d1e47 (diff)
downloadcpython-41cddc2e93a285b81fa30ac542b088bd9d0112e9.zip
cpython-41cddc2e93a285b81fa30ac542b088bd9d0112e9.tar.gz
cpython-41cddc2e93a285b81fa30ac542b088bd9d0112e9.tar.bz2
gh-105375: Improve error handling in the sys extension module (#105611)
In _PySys_AddXOptionWithError() and sys_add_xoption(), bail on first error to prevent exceptions from possibly being overwritten.
Diffstat (limited to 'Misc/NEWS.d/next/Library/2023-06-09-23-46-23.gh-issue-105375.9KaioS.rst')
-rw-r--r--Misc/NEWS.d/next/Library/2023-06-09-23-46-23.gh-issue-105375.9KaioS.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-06-09-23-46-23.gh-issue-105375.9KaioS.rst b/Misc/NEWS.d/next/Library/2023-06-09-23-46-23.gh-issue-105375.9KaioS.rst
new file mode 100644
index 0000000..b12d7c8
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2023-06-09-23-46-23.gh-issue-105375.9KaioS.rst
@@ -0,0 +1,2 @@
+Fix bugs in :mod:`sys` where exceptions could end up being overwritten
+because of deferred error handling.