Merge pull request #45539 from madmiraal/fix-handling-baseexception

Don't handle BaseException in JavaScript build script
This commit is contained in:
Fabio Alessandrelli 2021-01-31 13:39:41 +01:00 committed by GitHub
commit 02eb11450b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,12 +57,11 @@ def get_flags():
def configure(env):
if not isinstance(env["initial_memory"], int):
try:
env["initial_memory"] = int(env["initial_memory"])
except:
print("Initial memory must be a valid integer")
sys.exit(255)
try:
env["initial_memory"] = int(env["initial_memory"])
except Exception:
print("Initial memory must be a valid integer")
sys.exit(255)
## Build type
if env["target"] == "release":