mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44: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:
|
||||
mail = open(mailbox, 'r')
|
||||
except RuntimeError:
|
||||
except IOError:
|
||||
sys.stderr.write('Cannot open mailbox file: ' + mailbox + '\n')
|
||||
sys.exit(2)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue