浏览代码

Fix/code transform result (#3203)

tags/0.6.1
Yeuoly 1年前
父节点
当前提交
337899a03d
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      api/core/workflow/nodes/code/code_node.py

+ 3
- 0
api/core/workflow/nodes/code/code_node.py 查看文件

@@ -234,6 +234,9 @@ class CodeNode(BaseNode):
parameters_validated = {}
for output_name, output_config in output_schema.items():
dot = '.' if prefix else ''
if output_name not in result:
raise ValueError(f'Output {prefix}{dot}{output_name} is missing.')
if output_config.type == 'object':
# check if output is object
if not isinstance(result.get(output_name), dict):

正在加载...
取消
保存