summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--platform/javascript/detect.py11
1 files changed, 5 insertions, 6 deletions
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":