diff --git a/apps/api/app/api/routes/templates_editor/clips.py b/apps/api/app/api/routes/templates_editor/clips.py index fed9a3152..32a0cc038 100755 --- a/apps/api/app/api/routes/templates_editor/clips.py +++ b/apps/api/app/api/routes/templates_editor/clips.py @@ -460,6 +460,11 @@ def _get_template_segments( except Exception: logger.warning("旧模板系统查询segments失败", exc_info=True) + # 所有途径都失败:模板没有片段配置(可能是无效测试模板) + logger.error( + "模板无片段配置:template_id=%s(可能是 is_active=false 的无效模板)", + template_id, + ) return []