Author mp5023
Recipients krivushinme, mp5023, rhettinger, serhiy.storchaka, vinay.sajip
Date 2017-10-12.13:26:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507814804.53.0.213398074469.issue30767@psf.upfronthosting.co.za>
In-reply-to
Content
"exc_info which, if it does not evaluate as false", so we provide '1' or 'True'. The IF passes and immediately the formatter tries to dereference it blindly assuming it's Tuple and throws an Exception.

Either the Formatter needs to guard itself (best) or the caller needs to check the Type before allowing a call to the Formatter to go thru.

Should sys.exc_info() have already been called then the Tuple can have a valid frame reference or it's 3 None's. In this last case the Formatter is emitting a naked, zero context "NoneType None" line into the middle of the stack trace which is just annoying and pointless.

Again, I probably should have written the guard at the formatter to emit nothing when the field is None. It actually checks for the 2nd and 3rd fields, not the first.
History
Date User Action Args
2017-10-12 13:26:44mp5023setrecipients: + mp5023, rhettinger, vinay.sajip, serhiy.storchaka, krivushinme
2017-10-12 13:26:44mp5023setmessageid: <1507814804.53.0.213398074469.issue30767@psf.upfronthosting.co.za>
2017-10-12 13:26:44mp5023linkissue30767 messages
2017-10-12 13:26:44mp5023create