+ 1
Help me please I created voice assistant but sometimes it says none.
I created voice assistant but sometimes it says none when I make it read something, here's the example... elif 'what is' in boss_command: content = boss_command.replace('what is', '') speak(f'gathering information about {content}') info = pywhatkit.info(content,2) speak(info) . here when I say speak(info) it says NONE
1 Resposta
0
You have to add a check like this
if not info:
speak("your custom message instead of None ")