Skip to content

Commit 9d999a5

Browse files
authored
Rollup merge of #55438 - xfix:patch-9, r=frewsxcv
Avoid directly catching BaseException in bootstrap configure script It includes stuff like pressing CTRL+C, which likely isn't intended.
2 parents 06d0540 + 695ddbf commit 9d999a5

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)