mirror of https://github.com/langgenius/dify.git
fix: handle None env vars
Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
parent
299141ae01
commit
ef974e484b
|
|
@ -354,7 +354,7 @@ class Workflow(Base):
|
|||
if not tenant_id:
|
||||
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 = [
|
||||
variable_factory.build_environment_variable_from_mapping(v) for v in environment_variables_dict.values()
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in New Issue