diff options
author | Guido van Rossum <guido@python.org> | 1992-05-19 13:48:31 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-05-19 13:48:31 (GMT) |
commit | 9d741a79c099be13554304b9e4143c35cc5b141e (patch) | |
tree | a49e4b29c4bca0cfed6e8dcf22573e453557dfbb | |
parent | ef96359379e7e6c14cfa3a27efa650c33222e73a (diff) | |
download | cpython-9d741a79c099be13554304b9e4143c35cc5b141e.zip cpython-9d741a79c099be13554304b9e4143c35cc5b141e.tar.gz cpython-9d741a79c099be13554304b9e4143c35cc5b141e.tar.bz2 |
IOError instead of RuntimeError
-rwxr-xr-x | Demo/scripts/from.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/scripts/from.py b/Demo/scripts/from.py index 394af8d..3213aea 100755 --- a/Demo/scripts/from.py +++ b/Demo/scripts/from.py @@ -16,7 +16,7 @@ except (AttributeError, KeyError): try: mail = open(mailbox, 'r') -except RuntimeError: +except IOError: sys.stderr.write('Cannot open mailbox file: ' + mailbox + '\n') sys.exit(2) |