mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-14 21:52:56 +08:00
🐛 fix(http_utils): 增强错误处理,记录请求失败的详细信息
This commit is contained in:
parent
07be73c1b7
commit
249c8fe3ed
@ -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]:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user