[issue9509] argparse FileType raises ugly exception for missing file

SilentGhost report at bugs.python.org
Tue Jan 25 12:10:35 CET 2011


SilentGhost <ghost.adh at gmail.com> added the comment:

Steven, I'm wondering why do you raise ArgumentTypeError there? From reading doc strings of the relevant errors, it seems obvious to me that it should be ArgumentError. Argument is being used there, there's no conversion occurring anywhere.

----------

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


More information about the Python-bugs-list mailing list