From bc7d3aa6d74b718699b7a6bced9b0dfdfbf95c13 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 18 Nov 2019 17:40:07 +0100 Subject: 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(). --- Modules/cjkcodecs/multibytecodec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/Modules/cjkcodecs/multibytecodec.c b/Modules/cjkcodecs/multibytecodec.c index 56d0076..f24ec93 100644 --- a/Modules/cjkcodecs/multibytecodec.c +++ b/Modules/cjkcodecs/multibytecodec.c @@ -2085,7 +2085,6 @@ PyInit__multibytecodec(void) } if (PyErr_Occurred()) { - Py_FatalError("can't initialize the _multibytecodec module"); Py_DECREF(m); m = NULL; } -- cgit v0.12