]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38631: Avoid Py_FatalError() in _multibytecodec init (GH-17233)
authorVictor Stinner <vstinner@python.org>
Mon, 18 Nov 2019 16:40:07 +0000 (17:40 +0100)
committerGitHub <noreply@github.com>
Mon, 18 Nov 2019 16:40:07 +0000 (17:40 +0100)
commitbc7d3aa6d74b718699b7a6bced9b0dfdfbf95c13
tree696fcf1468056410a6934b9834c71ee4e5de4b62
parent04394df74b3d0783893da7dafa7803a003516402
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