remove redundant check_bool
This commit is contained in:
parent
7dfa6126d8
commit
20026cc1c7
1 changed files with 0 additions and 2 deletions
|
@ -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'):
|
||||
|
|
Reference in a new issue