From 249c8fe3ed8e086fcd7818499e4de816927d487e Mon Sep 17 00:00:00 2001 From: HibiKier <775757368@qq.com> Date: Thu, 16 Oct 2025 17:23:26 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(http=5Futils):=20=E5=A2=9E?= =?UTF-8?q?=E5=BC=BA=E9=94=99=E8=AF=AF=E5=A4=84=E7=90=86=EF=BC=8C=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E8=AF=B7=E6=B1=82=E5=A4=B1=E8=B4=A5=E7=9A=84=E8=AF=A6?= =?UTF-8?q?=E7=BB=86=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zhenxun/utils/http_utils.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zhenxun/utils/http_utils.py b/zhenxun/utils/http_utils.py index 202e732e..0c98c4fe 100644 --- a/zhenxun/utils/http_utils.py +++ b/zhenxun/utils/http_utils.py @@ -262,6 +262,12 @@ class AsyncHttpx: "AsyncHttpx:FallbackExecutor", ) return result + except HTTPStatusError as e: + exceptions.append(e) + logger.debug( + f"请求失败: {url} {e.response.status_code} {e.response.text}", + "AsyncHttpx:FallbackExecutor", + ) except Exception as e: exceptions.append(e) if url != url_list[-1]: