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:
Marcus Buffett 2017-09-21 12:15:10 -07:00
parent 1b55d19479
commit 5463aa06b8

View file

@ -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: