File tree Expand file tree Collapse file tree 5 files changed +9
-5
lines changed
examples/external_example Expand file tree Collapse file tree 5 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,10 @@ Telegram:[@lgc2333](https://t.me/lgc2333)
174
174
175
175
## 📝 更新日志
176
176
177
+ ### 2.1.3
178
+
179
+ - 兼容 HTTPX 0.28
180
+
177
181
### 2.1.2
178
182
179
183
- fix [ #49 ] ( https://github.com/lgc-NB2Dev/nonebot-plugin-picstatus/issues/49 )
Original file line number Diff line number Diff line change 13
13
async def lgc_icon () -> BgData :
14
14
async with AsyncClient (
15
15
follow_redirects = True ,
16
- proxies = config .proxy ,
16
+ proxy = config .proxy ,
17
17
timeout = config .ps_req_timeout ,
18
18
) as cli :
19
19
return resp_to_bg_data (
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ async def _():
50
50
if config .ps_only_su :
51
51
usage += "\n 注意:仅SuperUser可以使用此指令"
52
52
53
- __version__ = "2.1.2 "
53
+ __version__ = "2.1.3 "
54
54
__plugin_meta__ = PluginMetadata (
55
55
name = "PicStatus" ,
56
56
description = "以图片形式显示当前设备的运行状态" ,
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ def resp_to_bg_data(resp: Response):
64
64
async def loli ():
65
65
async with AsyncClient (
66
66
follow_redirects = True ,
67
- proxies = config .proxy ,
67
+ proxy = config .proxy ,
68
68
timeout = config .ps_req_timeout ,
69
69
) as cli :
70
70
return resp_to_bg_data (
@@ -76,7 +76,7 @@ async def loli():
76
76
async def lolicon ():
77
77
async with AsyncClient (
78
78
follow_redirects = True ,
79
- proxies = config .proxy ,
79
+ proxy = config .proxy ,
80
80
timeout = config .ps_req_timeout ,
81
81
) as cli :
82
82
resp = await cli .get (
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ async def test_one(site: TestSiteCfg) -> NetworkConnectionType:
79
79
try :
80
80
async with AsyncClient (
81
81
timeout = config .ps_test_timeout ,
82
- proxies = config .proxy if site .use_proxy else None ,
82
+ proxy = config .proxy if site .use_proxy else None ,
83
83
follow_redirects = True ,
84
84
) as client :
85
85
start = time .time ()
You can’t perform that action at this time.
0 commit comments