summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLint Action <[email protected]>2022-09-21 04:05:43 +0000
committerLint Action <[email protected]>2022-09-21 04:05:43 +0000
commitcc70c8d885edf0a88d1477d607e76bc3dbb91df9 (patch)
tree93ee0de28e338e6d89cb52c15842f238232c3912
parent1f458f9b279368354ccad224100abd59566f4ef3 (diff)
downloadATRI-cc70c8d885edf0a88d1477d607e76bc3dbb91df9.tar.gz
ATRI-cc70c8d885edf0a88d1477d607e76bc3dbb91df9.tar.bz2
ATRI-cc70c8d885edf0a88d1477d607e76bc3dbb91df9.zip
:rotating_light: 自动进行代码格式化
-rw-r--r--ATRI/plugins/anime_search.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ATRI/plugins/anime_search.py b/ATRI/plugins/anime_search.py
index bf06ece..08e9a0d 100644
--- a/ATRI/plugins/anime_search.py
+++ b/ATRI/plugins/anime_search.py
@@ -24,7 +24,9 @@ class Anime(Service):
try:
resp = await request.get(url)
image_bytes = resp.read()
- res = await request.post(URL, data=image_bytes, headers={"Content-Type": "image/jpeg"})
+ res = await request.post(
+ URL, data=image_bytes, headers={"Content-Type": "image/jpeg"}
+ )
except Exception:
raise RequestError("Request failed!")
result = res.json()