I got my little voice assistant in python, but I don't know what to do if wolframalpha doesn't give me any answer back.
elif 'wolfram' in command:
try:
print("I can answer your questions")
talk("I can answer your questions")
question = take_command()
app_id = "XXXXXXXXXXXX"
client = wolframalpha.Client(app_id)
res = client.query(question)
answer = next(res.results).text
print(answer)
except:
print("Sorry, I can't answer that")
talk("Sorry, I can't answer that")
It gives me these warnings
PEP 8: E722 do not use bare 'except'
Too broad exception clause