Skip to content

Commit f78f123

Browse files
authored
fix error when app.yaml includes int data
1 parent 5daa479 commit f78f123

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def replace_env_variables_in_app_yaml_file():
1717

1818
for key in yaml_data["env_variables"]:
1919
env_var = yaml_data["env_variables"][key]
20-
if env_var.startswith("$"):
20+
if type(env_var) is str and env_var.startswith("$"):
2121
repl_env_var = os.environ.get(env_var[1:])
2222
if repl_env_var is not None:
2323
yaml_data["env_variables"][key] = repl_env_var

0 commit comments

Comments
 (0)