mirror of
https://github.com/python/cpython.git
synced 2025-11-13 07:26:31 +00:00
IOError instead of RuntimeError
This commit is contained in:
parent
ef96359379
commit
9d741a79c0
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ except (AttributeError, KeyError):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
mail = open(mailbox, 'r')
|
mail = open(mailbox, 'r')
|
||||||
except RuntimeError:
|
except IOError:
|
||||||
sys.stderr.write('Cannot open mailbox file: ' + mailbox + '\n')
|
sys.stderr.write('Cannot open mailbox file: ' + mailbox + '\n')
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue