]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-105375: Improve error handling in the sys extension module (#105611)
authorErlend E. Aasland <erlend.aasland@protonmail.com>
Sun, 11 Jun 2023 20:02:49 +0000 (22:02 +0200)
committerGitHub <noreply@github.com>
Sun, 11 Jun 2023 20:02:49 +0000 (20:02 +0000)
commit41cddc2e93a285b81fa30ac542b088bd9d0112e9
tree327402188686f3424f35bfdee06895ef661e1095
parente8998e46a7ce8ad336e0941a6da6e50cb88d1e47
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.
Misc/NEWS.d/next/Library/2023-06-09-23-46-23.gh-issue-105375.9KaioS.rst [new file with mode: 0644]
Python/sysmodule.c