mirror of
https://github.com/langgenius/dify.git
synced 2026-01-04 01:01:09 -05:00
Refactor: centralize node data hydration (#27771)
This commit is contained in:
@@ -152,10 +152,5 @@ class CodeExecutor:
|
||||
raise CodeExecutionError(f"Unsupported language {language}")
|
||||
|
||||
runner, preload = template_transformer.transform_caller(code, inputs)
|
||||
|
||||
try:
|
||||
response = cls.execute_code(language, preload, runner)
|
||||
except CodeExecutionError as e:
|
||||
raise e
|
||||
|
||||
response = cls.execute_code(language, preload, runner)
|
||||
return template_transformer.transform_response(response)
|
||||
|
||||
Reference in New Issue
Block a user