[issue9509] argparse FileType raises ugly exception for missing file

Steven Bethard report at bugs.python.org
Sun Jan 23 11:11:39 CET 2011


Steven Bethard <steven.bethard at gmail.com> added the comment:

Georg, is this something we can patch for rc2? It's a bug - errors encountered by argparse-internal code should be translated into command line errors, and they currently aren't for read-only files.

For what it's worth, the tests fail when the new test_argparse test is added, and pass when the patch is applied, and I have personally reviewed the code and run the entire test suite on OS X and everything still passes.

----------
nosy: +georg.brandl

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


More information about the Python-bugs-list mailing list