diff options
| author | Victor Stinner <vstinner@python.org> | 2019-11-18 17:40:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-18 17:40:07 +0100 |
| commit | bc7d3aa6d74b718699b7a6bced9b0dfdfbf95c13 (patch) | |
| tree | 696fcf1468056410a6934b9834c71ee4e5de4b62 /Modules | |
| parent | 04394df74b3d0783893da7dafa7803a003516402 (diff) | |
| download | cpython-git-bc7d3aa6d74b718699b7a6bced9b0dfdfbf95c13.tar.gz | |
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.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Modules/cjkcodecs/multibytecodec.c b/Modules/cjkcodecs/multibytecodec.c index 56d007607e..f24ec93350 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; } |
