mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
✨ feat(http): 在异步HTTP请求中添加状态码检查
This commit is contained in:
parent
c9bd957146
commit
3343b83ad0
@ -207,6 +207,7 @@ class AsyncHttpx:
|
|||||||
response = await cls()._execute_request_inner(
|
response = await cls()._execute_request_inner(
|
||||||
active_client, method, url, **request_kwargs
|
active_client, method, url, **request_kwargs
|
||||||
)
|
)
|
||||||
|
response.raise_for_status()
|
||||||
return response
|
return response
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user