mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
bpo-38631: Avoid Py_FatalError() in _multibytecodec init (GH-17233)
If an exception is raised and PyInit__multibytecodec() returns NULL, Python reports properly the exception to the user. There is no need to crash Python with Py_FatalError().
This commit is contained in:
@@ -2085,7 +2085,6 @@ PyInit__multibytecodec(void)
|
||||
}
|
||||
|
||||
if (PyErr_Occurred()) {
|
||||
Py_FatalError("can't initialize the _multibytecodec module");
|
||||
Py_DECREF(m);
|
||||
m = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user