[issue9509] argparse FileType raises ugly exception for missing file

akira report at bugs.python.org
Thu Nov 25 04:40:57 CET 2010


akira <4kir4.1i at gmail.com> added the comment:

Attached patch for argparse.py (argparse.diff -- without tests, see tests in test_argparse.diff) where ValueError is raises in FileType.__call__ and additional details printed on ArgumentError

----------
Added file: http://bugs.python.org/file19807/argparse.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9509>
_______________________________________


More information about the Python-bugs-list mailing list