Skip to content

Commit 5463aa0

Browse files
committed
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
1 parent 1b55d19 commit 5463aa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/bootstrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ def bootstrap():
682682
try:
683683
with open(args.config or 'config.toml') as config:
684684
build.config_toml = config.read()
685-
except OSError:
685+
except (OSError, IOError):
686686
pass
687687

688688
if '\nverbose = 2' in build.config_toml:

0 commit comments

Comments
 (0)