From 695ddbfbd56accb265d6b85d9e70cfb23094632c Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Sun, 28 Oct 2018 12:03:29 +0100 Subject: [PATCH] Avoid directly catching BaseException in bootstrap configure script It includes stuff like pressing CTRL+C, which likely isn't intended. --- src/bootstrap/configure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap/configure.py b/src/bootstrap/configure.py index ddb894eb1f659..d5f8d9d27d956 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