From b3acc755ae12408372d50356fed7c6f77cb5ea16 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Sun, 30 Aug 2026 18:22:24 +0800 Subject: [PATCH] =?UTF-8?q?style:=20B904=20=E2=80=94=20except=20=E4=B8=AD?= =?UTF-8?q?=20raise=20HTTPException=20=E8=A1=A5=20from=20None?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/api/app/api/routes/tts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/app/api/routes/tts.py b/apps/api/app/api/routes/tts.py index 1069d4e77..f1e06dc0f 100755 --- a/apps/api/app/api/routes/tts.py +++ b/apps/api/app/api/routes/tts.py @@ -360,7 +360,7 @@ def _find_or_create_voice_library( raise HTTPException( status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail="配音素材库创建失败,请重试", - ) + ) from None # IntegrityError 已处理,不保留异常链 @router.post(