Catch IOError
If config.toml doesn't exist, then an IOError will be raised
on the `with open(...)` line. Prior to e788fa7
, this was
caught because the `except` clause didn't specify what
exceptions it caught, so both IOError and OSError were
caught
This commit is contained in:
parent
1b55d19479
commit
5463aa06b8
@ -682,7 +682,7 @@ def bootstrap():
|
||||
try:
|
||||
with open(args.config or 'config.toml') as config:
|
||||
build.config_toml = config.read()
|
||||
except OSError:
|
||||
except (OSError, IOError):
|
||||
pass
|
||||
|
||||
if '\nverbose = 2' in build.config_toml:
|
||||
|
Loading…
Reference in New Issue
Block a user