summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2019-11-18 16:40:07 (GMT)
committerGitHub <noreply@github.com>2019-11-18 16:40:07 (GMT)
commitbc7d3aa6d74b718699b7a6bced9b0dfdfbf95c13 (patch)
tree696fcf1468056410a6934b9834c71ee4e5de4b62 /Modules
parent04394df74b3d0783893da7dafa7803a003516402 (diff)
downloadcpython-bc7d3aa6d74b718699b7a6bced9b0dfdfbf95c13.zip
cpython-bc7d3aa6d74b718699b7a6bced9b0dfdfbf95c13.tar.gz
cpython-bc7d3aa6d74b718699b7a6bced9b0dfdfbf95c13.tar.bz2
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().
Diffstat (limited to 'Modules')
-rw-r--r--Modules/cjkcodecs/multibytecodec.c1
1 files changed, 0 insertions, 1 deletions
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;
}