Author doughellmann
Recipients doughellmann
Date 2010-08-04.13:08:05
SpamBayes Score 2.89328e-05
Marked as misclassified No
Message-id <1280927287.23.0.0771144110186.issue9509@psf.upfronthosting.co.za>
In-reply-to
Content
Most of the argparse type converters handle exceptions with a single line error message explaining the problem.  For example, if an argument -i is declared as an int, but the value given ('a') cannot be converted to an int, the message is something like "argument -i: invalid int value: 'a'".  

On the other hand, FileType raises an IOError, which isn't being caught and converted to the simpler error message. Instead, a full traceback is printed.  To be consistent, the IOError should be trapped and a single error message printed.
History
Date User Action Args
2010-08-04 13:08:07doughellmannsetrecipients: + doughellmann
2010-08-04 13:08:07doughellmannsetmessageid: <1280927287.23.0.0771144110186.issue9509@psf.upfronthosting.co.za>
2010-08-04 13:08:06doughellmannlinkissue9509 messages
2010-08-04 13:08:05doughellmanncreate