Skip to content

Commit

Permalink
Merge pull request #35 from MinatoAquaCrews/dev
Browse files Browse the repository at this point in the history
fix: usage of property httpx.Response.content
  • Loading branch information
KafCoppelia authored Mar 28, 2023
2 parents 92e99bf + 1e8b2ea commit 5b8638f
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
categories:
- title: 💥 Breaking changes
labels:
- breaking-change
label: "breaking-change"
- title: "🚀 Features"
labels:
- "feature"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ _🔮 塔罗牌 🔮_
<img src="https://img.shields.io/badge/nonebot2-2.0.0b3+-green">
</a>

<a href="https://github.com/MinatoAquaCrews/nonebot_plugin_tarot/releases/tag/v0.4.0.post3">
<a href="https://github.com/MinatoAquaCrews/nonebot_plugin_tarot/releases/tag/v0.4.0.post4">
<img src="https://img.shields.io/github/v/release/MinatoAquaCrews/nonebot_plugin_tarot?color=orange">
</a>

Expand All @@ -40,7 +40,7 @@ _“许多傻瓜对千奇百怪的迷信说法深信不疑:象牙、护身符

## 版本

🧰 [v0.4.0.post3](https://github.com/MinatoAquaCrews/nonebot_plugin_tarot/releases/tag/v0.4.0.post3)
🧰 [v0.4.0.post4](https://github.com/MinatoAquaCrews/nonebot_plugin_tarot/releases/tag/v0.4.0.post4)

⚠ 适配nonebot2-2.0.0b3+

Expand Down
2 changes: 1 addition & 1 deletion nonebot_plugin_tarot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from .data_source import tarot_manager

__tarot_version__ = "v0.4.0.post3"
__tarot_version__ = "v0.4.0.post4"
__tarot_usages__ = f'''
塔罗牌 {__tarot_version__}
[占卜] 随机选取牌阵进行占卜
Expand Down
2 changes: 1 addition & 1 deletion nonebot_plugin_tarot/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async def download_url(name: str, is_json: bool = False) -> Union[Dict[str, Any]
if response.status_code != 200:
continue

return response.json() if is_json else response.content()
return response.json() if is_json else response.content

except Exception:
logger.warning(
Expand Down
9 changes: 8 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nonebot_plugin_tarot"
version = "0.4.0.post3"
version = "0.4.0.post4"
description = "Tarot divination!"
authors = ["KafCoppelia <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 5b8638f

Please sign in to comment.