diff options
author | Lint Action <[email protected]> | 2022-09-21 04:05:43 +0000 |
---|---|---|
committer | Lint Action <[email protected]> | 2022-09-21 04:05:43 +0000 |
commit | cc70c8d885edf0a88d1477d607e76bc3dbb91df9 (patch) | |
tree | 93ee0de28e338e6d89cb52c15842f238232c3912 | |
parent | 1f458f9b279368354ccad224100abd59566f4ef3 (diff) | |
download | ATRI-cc70c8d885edf0a88d1477d607e76bc3dbb91df9.tar.gz ATRI-cc70c8d885edf0a88d1477d607e76bc3dbb91df9.tar.bz2 ATRI-cc70c8d885edf0a88d1477d607e76bc3dbb91df9.zip |
:rotating_light: 自动进行代码格式化
-rw-r--r-- | ATRI/plugins/anime_search.py | 4 |
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() |