Browse files

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
  • Loading branch information...
marcusbuffett committed Sep 21, 2017
1 parent 1b55d19 commit 5463aa06b8d3f9dd02225924ff726a14af0878a6
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/bootstrap/
@@ -682,7 +682,7 @@ def bootstrap():
with open(args.config or 'config.toml') as config:
build.config_toml =
except OSError:
except (OSError, IOError):
if '\nverbose = 2' in build.config_toml:

0 comments on commit 5463aa0

Please sign in to comment.