mirror of https://github.com/python/cpython
IOError instead of RuntimeError
This commit is contained in:
parent
ef96359379
commit
9d741a79c0
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue