fix what_anime

This commit is contained in:
HibiKier
2022-05-21 16:39:06 +08:00
parent b5a4a6a9ff
commit b7b1651709
3 changed files with 5 additions and 5 deletions
+2
View File
@@ -23,6 +23,8 @@ async def get_data(url: str, params: Optional[dict] = None) -> Tuple[Union[dict,
return "没有搜索到...", 997
return data, 200
else:
if data["code"] == 101:
return "缺失ALAPI TOKEN,请在配置文件中填写!", 999
return f'发生了错误...code:{data["code"]}', 999
except TimeoutError:
return "超时了....", 998