This commit is contained in:
2026-07-24 16:07:05 +08:00
parent bc7eee681d
commit 03ed98ce9b
2 changed files with 4 additions and 2 deletions
@@ -385,7 +385,8 @@ def _step_to_out(step: ModuleGenerationStep) -> ShotReplicateStepOut:
if error_message:
from app.services.error_codes import ARK_ERRORS
import re
match = re.search(r"code='([^']+)'", error_message)
# 兼容两种格式: code='xxx' 或 'code': 'xxx'
match = re.search(r"""code['"]?\s*[:=]\s*['"]([^'"]+)['"]""", error_message)
if match:
code = match.group(1)
if code in ARK_ERRORS: