Commit 9d741a79 authored by Guido van Rossum's avatar Guido van Rossum

IOError instead of RuntimeError

parent ef963593
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment