]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43132: Fix incorrect handling of PyObject_RichCompareBool() in _zoneinfo (GH...
authorZackery Spytz <zspytz@gmail.com>
Fri, 5 Feb 2021 08:25:30 +0000 (01:25 -0700)
committerGitHub <noreply@github.com>
Fri, 5 Feb 2021 08:25:30 +0000 (10:25 +0200)
commiteffaec0bb54f381db8ccfa62514bc26b00946b40
tree19073d9df8fc11ca4823ef321b33edb0ac6dab38
parent755c6e637a4f098881953e0c6d269d576fdbdcba
bpo-43132: Fix incorrect handling of PyObject_RichCompareBool() in _zoneinfo (GH-24450)

PyObject_RichCompareBool() returns -1 on error, but this case is
not handled by the find_in_strong_cache() function.  Any exception
raised by PyObject_RichCompareBool() should be propagated.
Modules/_zoneinfo.c