IOError instead of RuntimeError

This commit is contained in:
Guido van Rossum 1992-05-19 13:48:31 +00:00
parent ef96359379
commit 9d741a79c0
1 changed files with 1 additions and 1 deletions

View File

@ -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)