Merge pull request #45539 from madmiraal/fix-handling-baseexception
Don't handle BaseException in JavaScript build script
This commit is contained in:
commit
02eb11450b
1 changed files with 5 additions and 6 deletions
|
@ -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":
|
||||
|
|
Loading…
Reference in a new issue