Archived
1
0
Fork 0

remove redundant check_bool

This commit is contained in:
多羅狼 2024-01-28 14:58:18 +08:00 committed by GitHub
parent 7dfa6126d8
commit 20026cc1c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,8 +53,6 @@ async def _(msg: Bot.MessageSession, question: str):
url = f"http://api.wolframalpha.com/v1/result?appid={appid}&i={url_query}&units=metric"
try:
data = await get_url(url, 200)
if await check_bool(data):
await msg.finish(rickroll(msg))
await msg.finish(data)
except ValueError as e:
if str(e).startswith('501'):