This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients fossilet, pitrou, r.david.murray, serhiy.storchaka
Date 2014-09-15.15:41:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1410795668.82.0.00154364448966.issue22379@psf.upfronthosting.co.za>
In-reply-to
Content
The str of the exception will always be nonblank (it will contain the string 'TypeError' at a minimum).  So you need to peel off the 'TypeError:' prefix before testing if you want to use str(e).  That's why I suggested using args[0], but I suppose that might be a little more fragile.
History
Date User Action Args
2014-09-15 15:41:08r.david.murraysetrecipients: + r.david.murray, pitrou, fossilet, serhiy.storchaka
2014-09-15 15:41:08r.david.murraysetmessageid: <1410795668.82.0.00154364448966.issue22379@psf.upfronthosting.co.za>
2014-09-15 15:41:08r.david.murraylinkissue22379 messages
2014-09-15 15:41:08r.david.murraycreate