Message112798
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. |
|
Date |
User |
Action |
Args |
2010-08-04 13:08:07 | doughellmann | set | recipients:
+ doughellmann |
2010-08-04 13:08:07 | doughellmann | set | messageid: <1280927287.23.0.0771144110186.issue9509@psf.upfronthosting.co.za> |
2010-08-04 13:08:06 | doughellmann | link | issue9509 messages |
2010-08-04 13:08:05 | doughellmann | create | |
|