fix : wrong condition

This commit is contained in:
martin legrand 2025-03-26 11:09:05 +01:00
parent 5d08565ff1
commit df922b18a7

View File

@ -109,7 +109,7 @@ class Interaction:
"""Show the answer to the user.""" """Show the answer to the user."""
if self.last_query is None: if self.last_query is None:
return return
if self.current_agent is None: if self.current_agent is not None:
self.current_agent.show_answer() self.current_agent.show_answer()
if self.tts_enabled and self.last_answer: if self.tts_enabled and self.last_answer:
self.speech.speak(self.last_answer) self.speech.speak(self.last_answer)