1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

Don't handle BaseException in build scripts

This commit is contained in:
Marcel Admiraal
2020-12-12 10:10:23 +00:00
parent 1cd0d711c5
commit e21adf2bc6
6 changed files with 7 additions and 7 deletions

View File

@@ -329,6 +329,6 @@ def get_ndk_version(path):
key_value = list(map(lambda x: x.strip(), line.split("=")))
if key_value[0] == "Pkg.Revision":
return key_value[1]
except:
except Exception:
print("Could not read source prop file '%s'" % prop_file_path)
return None

View File

@@ -94,7 +94,7 @@ def build_res_file(target, source, env):
out = subprocess.Popen(cmd, shell=True, stderr=subprocess.PIPE).communicate()
if len(out[1]):
return 1
except:
except Exception:
return 1
return 0