summaryrefslogtreecommitdiffstats
path: root/Demo/scripts
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-05-19 13:48:31 (GMT)
committerGuido van Rossum <guido@python.org>1992-05-19 13:48:31 (GMT)
commit9d741a79c099be13554304b9e4143c35cc5b141e (patch)
treea49e4b29c4bca0cfed6e8dcf22573e453557dfbb /Demo/scripts
parentef96359379e7e6c14cfa3a27efa650c33222e73a (diff)
downloadcpython-9d741a79c099be13554304b9e4143c35cc5b141e.zip
cpython-9d741a79c099be13554304b9e4143c35cc5b141e.tar.gz
cpython-9d741a79c099be13554304b9e4143c35cc5b141e.tar.bz2
IOError instead of RuntimeError
Diffstat (limited to 'Demo/scripts')
-rwxr-xr-xDemo/scripts/from.py2
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)