]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
PyErr_NormalizeException(): in the type==NULL test, we should simply
authorGuido van Rossum <guido@python.org>
Thu, 10 Apr 2003 20:29:48 +0000 (20:29 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 10 Apr 2003 20:29:48 +0000 (20:29 +0000)
commit6b3fffaf990c64ecf6fc1df7e29dba17bda9d419
tree614cc1e1c7548d9c2cddb56042927467817cc771
parent594adac0bf9e800997ff967a550c6645d8de14e5
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