SIGN IN SIGN UP

gh-146480: Override the exception in _PyErr_SetKeyError() (#146486)

If _PyErr_SetKeyError() is called with an exception set, it now
replaces the current exception with KeyError (as expected), instead
of setting a SystemError or failing with a fatal error (in debug
mode).
V
Victor Stinner committed
d4153a9f76736128306c4af01776729da846d926
Parent: d0061d5
Committed by GitHub <noreply@github.com> on 3/27/2026, 11:20:19 AM