From 63ffac6afea399dfdcdf3dbe9337ba6972b1ffad Mon Sep 17 00:00:00 2001 From: Harry Date: Fri, 23 Jan 2026 17:06:11 +0800 Subject: [PATCH] fix(asset_download_service): suppress error output during download command execution - Updated the download script to redirect error output to /dev/null, preventing unnecessary error messages from being displayed. - Added an explicit exit command to ensure the script terminates correctly after execution. --- api/core/sandbox/services/asset_download_service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/core/sandbox/services/asset_download_service.py b/api/core/sandbox/services/asset_download_service.py index e79e866ea9..589b2ce65a 100644 --- a/api/core/sandbox/services/asset_download_service.py +++ b/api/core/sandbox/services/asset_download_service.py @@ -40,7 +40,7 @@ def _render_download_script(root_path: str, download_commands: str) -> str: url="$2" dest="${{download_root}}/${{file_path}}" mkdir -p "$(dirname "${{dest}}")" - eval "${{download_cmd}}" || echo "${{file_path}}" >> "${{fail_log}}" + eval "${{download_cmd}}" 2>/dev/null || echo "${{file_path}}" >> "${{fail_log}}" }} {download_commands} @@ -52,6 +52,7 @@ def _render_download_script(root_path: str, download_commands: str) -> str: else rm -f "${{fail_log}}" fi + exit 0 """ return textwrap.dedent(script).strip()