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).