]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport:
authorGuido van Rossum <guido@python.org>
Thu, 10 Apr 2003 20:30:18 +0000 (20:30 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 10 Apr 2003 20:30:18 +0000 (20:30 +0000)
commitef582abab461e306ac3fa0ad867b2db564fed3a5
tree790ebf4c78d09a7c794f3c4e27d3a341da8a588e
parentd065a13a96428c8b6cc2809aed9ab2ec08c9d8d5
Backport:
PyErr_NormalizeException(): in the type==NULL test, we should simply
return.  Setting an exception can mess with the exception state, and
continuing is definitely wrong (since type is dereferenced later on).
Some code that calls this seems to be prepared for a NULL exception
type, so let's be safe rather than sorry and simply assume there's
nothing to normalize in this case.
Python/errors.c