Message 253160 - Python tracker

Message253160

Author dfortunov
Recipients dfortunov
Date 2015-10-18.19:29:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1445196585.11.0.0454648926496.issue25436@psf.upfronthosting.co.za>
In-reply-to
Content
ArgumentError's __init__() fails to call super(), meaning
that the base exception doesn’t get a message, and thus repr() always
returns “argparse.ArgumentError()” with no message.

Not very helpful if that repr gets logged, or included in another error message :-(

I've attached a patch that fixes this, and adds corresponding tests.
History
Date User Action Args
2015-10-18 19:29:45dfortunovsetrecipients: + dfortunov
2015-10-18 19:29:45dfortunovsetmessageid: <1445196585.11.0.0454648926496.issue25436@psf.upfronthosting.co.za>
2015-10-18 19:29:45dfortunovlinkissue25436 messages
2015-10-18 19:29:44dfortunovcreate