about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorKonrad Borowski <konrad@borowski.pw>2018-10-28 12:03:29 +0100
committerGitHub <noreply@github.com>2018-10-28 12:03:29 +0100
commit695ddbfbd56accb265d6b85d9e70cfb23094632c (patch)
tree671520504ea58ac635867d6c5b5432ce8499db78 /src/bootstrap
parent1982f1887ad524951f24c12a6cc7bf05148aec14 (diff)
downloadrust-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-xsrc/bootstrap/configure.py2
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