From fad0cec272e4ad047aa0870ec6fd674054a6f6ca Mon Sep 17 00:00:00 2001 From: Marcel Admiraal Date: Thu, 28 Jan 2021 19:23:49 +0000 Subject: Don't handle BaseException in JavaScript build script --- platform/javascript/detect.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'platform/javascript') diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py index 76683da947..653d18f791 100644 --- a/platform/javascript/detect.py +++ b/platform/javascript/detect.py @@ -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": -- cgit v1.2.3