Browse Source

fix: handle None env vars

Signed-off-by: -LAN- <laipz8200@outlook.com>
tags/2.0.0-beta.2^2
-LAN- 1 month ago
parent
commit
ef974e484b
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      api/models/workflow.py

+ 1
- 1
api/models/workflow.py View File

if not tenant_id: if not tenant_id:
return [] return []


environment_variables_dict: dict[str, Any] = json.loads(self._environment_variables)
environment_variables_dict: dict[str, Any] = json.loads(self._environment_variables or "{}")
results = [ results = [
variable_factory.build_environment_variable_from_mapping(v) for v in environment_variables_dict.values() variable_factory.build_environment_variable_from_mapping(v) for v in environment_variables_dict.values()
] ]

Loading…
Cancel
Save