Skip to content

Commit 695ddbf

Browse files
Avoid directly catching BaseException in bootstrap configure script
It includes stuff like pressing CTRL+C, which likely isn't intended.
1 parent 1982f18 commit 695ddbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/configure.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def is_number(value):
397397
try:
398398
float(value)
399399
return True
400-
except:
400+
except ValueError:
401401
return False
402402

403403
# Here we walk through the constructed configuration we have from the parsed

0 commit comments

Comments
 (0)