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(