diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-06-11 21:12:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-11 21:12:17 (GMT) |
commit | a1034b5fd3af59d813452742153e60b40b39ff4a (patch) | |
tree | c83daf641f94dd60c137baa0280c390cf695bcc1 /Python/errors.c | |
parent | 82ac2be6b386b7d106a36262f1aa960f638bde8d (diff) | |
download | cpython-a1034b5fd3af59d813452742153e60b40b39ff4a.zip cpython-a1034b5fd3af59d813452742153e60b40b39ff4a.tar.gz cpython-a1034b5fd3af59d813452742153e60b40b39ff4a.tar.bz2 |
[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>
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions