summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2021-11-01 07:09:53 +0800
committerKyomotoi <[email protected]>2021-11-01 07:09:53 +0800
commit119f310a1cdb49c09619a524f1c6896044dfc250 (patch)
treed622da2c17495a55d583d9b78ba6956268a67a39
parent8c5e705c63cf1b9fdd6d541ceea67573e7f21890 (diff)
downloadATRI-119f310a1cdb49c09619a524f1c6896044dfc250.tar.gz
ATRI-119f310a1cdb49c09619a524f1c6896044dfc250.tar.bz2
ATRI-119f310a1cdb49c09619a524f1c6896044dfc250.zip
🐛 历史遗留bug
-rw-r--r--ATRI/plugins/funny/data_source.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ATRI/plugins/funny/data_source.py b/ATRI/plugins/funny/data_source.py
index 89b1392..4fe8ed7 100644
--- a/ATRI/plugins/funny/data_source.py
+++ b/ATRI/plugins/funny/data_source.py
@@ -38,7 +38,7 @@ class Funny(Service):
"https://cdn.jsdelivr.net/gh/Kyomotoi/CDN@master/project/ATRI/laugh.txt"
)
res = await request.get(url)
- context = await res.text() # type: ignore
+ context = res.text
with open(path, "w", encoding="utf-8") as w:
w.write(context)
logger.warning("完成")