]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-105375: Improve error handling in the sys extension module (#105611) (...
authorErlend E. Aasland <erlend.aasland@protonmail.com>
Sun, 11 Jun 2023 21:08:40 +0000 (23:08 +0200)
committerGitHub <noreply@github.com>
Sun, 11 Jun 2023 21:08:40 +0000 (21:08 +0000)
commitf98d475ee311268b28a9fc598a4efd22696d1208
tree6e06f887e17395a6f6af9898394c072c85050521
parenta03449374ebd5bffe54d3e09d36b54bc605551d8
[3.11] gh-105375: Improve error handling in the sys extension module (#105611) (#105666)

(cherry picked from commit 41cddc2e93a285b81fa30ac542b088bd9d0112e9)

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