Skip to content

Commit b5f84fd

Browse files
committed
up
1 parent af196d3 commit b5f84fd

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ Telegram:[@lgc2333](https://t.me/lgc2333)
174174

175175
## 📝 更新日志
176176

177+
### 2.1.3
178+
179+
- 兼容 HTTPX 0.28
180+
177181
### 2.1.2
178182

179183
- fix [#49](https://github.com/lgc-NB2Dev/nonebot-plugin-picstatus/issues/49)

examples/external_example/bg_provider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
async def lgc_icon() -> BgData:
1414
async with AsyncClient(
1515
follow_redirects=True,
16-
proxies=config.proxy,
16+
proxy=config.proxy,
1717
timeout=config.ps_req_timeout,
1818
) as cli:
1919
return resp_to_bg_data(

nonebot_plugin_picstatus/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ async def _():
5050
if config.ps_only_su:
5151
usage += "\n注意:仅SuperUser可以使用此指令"
5252

53-
__version__ = "2.1.2"
53+
__version__ = "2.1.3"
5454
__plugin_meta__ = PluginMetadata(
5555
name="PicStatus",
5656
description="以图片形式显示当前设备的运行状态",

nonebot_plugin_picstatus/bg_provider.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def resp_to_bg_data(resp: Response):
6464
async def loli():
6565
async with AsyncClient(
6666
follow_redirects=True,
67-
proxies=config.proxy,
67+
proxy=config.proxy,
6868
timeout=config.ps_req_timeout,
6969
) as cli:
7070
return resp_to_bg_data(
@@ -76,7 +76,7 @@ async def loli():
7676
async def lolicon():
7777
async with AsyncClient(
7878
follow_redirects=True,
79-
proxies=config.proxy,
79+
proxy=config.proxy,
8080
timeout=config.ps_req_timeout,
8181
) as cli:
8282
resp = await cli.get(

nonebot_plugin_picstatus/collectors/network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ async def test_one(site: TestSiteCfg) -> NetworkConnectionType:
7979
try:
8080
async with AsyncClient(
8181
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,
8383
follow_redirects=True,
8484
) as client:
8585
start = time.time()

0 commit comments

Comments
 (0)