From 9d741a79c099be13554304b9e4143c35cc5b141e Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 19 May 1992 13:48:31 +0000 Subject: IOError instead of RuntimeError --- Demo/scripts/from.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v0.12