[issue9509] argparse FileType raises ugly exception for missing file

akira report at bugs.python.org
Wed Jan 19 20:32:07 CET 2011

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

"no such file or directory '%s'" is misleading if you are trying to open a readonly file for writing.

The message might be replace by: "can't open '%s'"


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list