Skip to content

Commit 417a8ce

Browse files
optimize: 语法优化。
1 parent 0754ec5 commit 417a8ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/application/flow/step_node/variable_splitting_node/impl/base_variable_splitting_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def save_context(self, details, workflow_manage):
4141
self.context['exception_message'] = details.get('err_message')
4242

4343
def execute(self, input_variable, variable_list, **kwargs) -> NodeResult:
44-
if type(input_variable).__name__ == "str":
44+
if isinstance(input_variable, str):
4545
try:
4646
input_variable = json.loads(input_variable)
4747
except Exception:

0 commit comments

Comments
 (0)