From 7b5f365e8ce1fe8fe76e7a0533c4b98d2ed2d1d2 Mon Sep 17 00:00:00 2001 From: haosenwang1018 Date: Wed, 25 Feb 2026 07:07:18 +0000 Subject: [PATCH] fix: replace bare except with except Exception --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index eb54cf3..3d56e89 100644 --- a/app/main.py +++ b/app/main.py @@ -129,7 +129,7 @@ async def error_stream(err_msg): status_code=400, content=error_json ) - except: + except Exception: pass # 如果是流式请求,返回流式错误响应 if body.get("stream", True):