diff options
| author | Konrad Borowski <konrad@borowski.pw> | 2018-10-28 12:03:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-28 12:03:29 +0100 |
| commit | 695ddbfbd56accb265d6b85d9e70cfb23094632c (patch) | |
| tree | 671520504ea58ac635867d6c5b5432ce8499db78 /src/bootstrap | |
| parent | 1982f1887ad524951f24c12a6cc7bf05148aec14 (diff) | |
| download | rust-695ddbfbd56accb265d6b85d9e70cfb23094632c.tar.gz rust-695ddbfbd56accb265d6b85d9e70cfb23094632c.zip | |
Avoid directly catching BaseException in bootstrap configure script
It includes stuff like pressing CTRL+C, which likely isn't intended.
Diffstat (limited to 'src/bootstrap')
| -rwxr-xr-x | src/bootstrap/configure.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/configure.py b/src/bootstrap/configure.py index ddb894eb1f6..d5f8d9d27d9 100755 --- a/src/bootstrap/configure.py +++ b/src/bootstrap/configure.py @@ -397,7 +397,7 @@ def is_number(value): try: float(value) return True - except: + except ValueError: return False # Here we walk through the constructed configuration we have from the parsed |
