]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38631: Avoid Py_FatalError() in GC collect() (GH-18164)
authorVictor Stinner <vstinner@python.org>
Fri, 24 Jan 2020 17:05:24 +0000 (18:05 +0100)
committerGitHub <noreply@github.com>
Fri, 24 Jan 2020 17:05:24 +0000 (18:05 +0100)
commit656c45ec9a9dc2e94cec199ebde553a6979e0e05
tree2730a56321dcf118b231d2f08d333381832b6090
parent88704334e5262c6cd395a0809d4ef810f33f3ca5
bpo-38631: Avoid Py_FatalError() in GC collect() (GH-18164)

collect() should not get an exception, but it does, logging the
exception is enough. Override sys.unraisablehook to decide how to
handle unraisable exceptions.

Py_FatalError() should be avoided whenever possible.
Modules/gcmodule.c