Don't handle BaseException in JavaScript build script

This commit is contained in:
Marcel Admiraal 2021-01-28 19:23:49 +00:00
parent e50422d01c
commit fad0cec272

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":