bpo-30767 - handle empty exception frame and prevent extraneous output by tb3088 · Pull Request #3792 · python/cpython (original) (raw)
Copy link
tb3088 commented
•
edited by bedevere-bot
Loading
While it's not common-place when handling an exception, it's possible for an (custom) exception handler to not find a frame after walking the call stack (eg. function _log() line 1445, function handleError() line 920).
When faced with an exc_info of (None, None, None) an extra line of the form:NoneObject None
being added to the exception message during formatting step.
I also removed the incomplete parameter sanity check and invoked the already defined one.