]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-105375: Improve error handling in the sys extension module (GH-105611)...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 11 Jun 2023 21:12:17 +0000 (14:12 -0700)
committerGitHub <noreply@github.com>
Sun, 11 Jun 2023 21:12:17 +0000 (21:12 +0000)
commita1034b5fd3af59d813452742153e60b40b39ff4a
treec83daf641f94dd60c137baa0280c390cf695bcc1
parent82ac2be6b386b7d106a36262f1aa960f638bde8d
[3.12] gh-105375: Improve error handling in the sys extension module (GH-105611) (#105665)

In _PySys_AddXOptionWithError() and sys_add_xoption(),
bail on first error to prevent exceptions from possibly being
overwritten.
(cherry picked from commit 41cddc2e93a285b81fa30ac542b088bd9d0112e9)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Misc/NEWS.d/next/Library/2023-06-09-23-46-23.gh-issue-105375.9KaioS.rst [new file with mode: 0644]
Python/sysmodule.c