mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00: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:
parent
04394df74b
commit
bc7d3aa6d7
1 changed files with 0 additions and 1 deletions
|
@ -2085,7 +2085,6 @@ PyInit__multibytecodec(void)
|
|||
}
|
||||
|
||||
if (PyErr_Occurred()) {
|
||||
Py_FatalError("can't initialize the _multibytecodec module");
|
||||
Py_DECREF(m);
|
||||
m = NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue