Message226923
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. |
|
Date |
User |
Action |
Args |
2014-09-15 15:41:08 | r.david.murray | set | recipients:
+ r.david.murray, pitrou, fossilet, serhiy.storchaka |
2014-09-15 15:41:08 | r.david.murray | set | messageid: <1410795668.82.0.00154364448966.issue22379@psf.upfronthosting.co.za> |
2014-09-15 15:41:08 | r.david.murray | link | issue22379 messages |
2014-09-15 15:41:08 | r.david.murray | create | |
|