Skip to content

Commit bc7d3aa

Browse files
authored
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().
1 parent 04394df commit bc7d3aa

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Modules/cjkcodecs/multibytecodec.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2085,7 +2085,6 @@ PyInit__multibytecodec(void)
20852085
}
20862086

20872087
if (PyErr_Occurred()) {
2088-
Py_FatalError("can't initialize the _multibytecodec module");
20892088
Py_DECREF(m);
20902089
m = NULL;
20912090
}

0 commit comments

Comments
 (0)