SIGN IN SIGN UP

[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>
M
Miss Islington (bot) committed
a1034b5fd3af59d813452742153e60b40b39ff4a
Parent: 82ac2be
Committed by GitHub <noreply@github.com> on 6/11/2023, 9:12:17 PM