From dc62736d843949a4f6a01cbd1af09c25a38673a9 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Mon, 19 Jul 2021 20:49:51 -0500 Subject: Refactor how some events work --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'main.py') diff --git a/main.py b/main.py index 10d4bb4..c72147c 100755 --- a/main.py +++ b/main.py @@ -39,8 +39,9 @@ if __name__ == "__main__": # If we matched a sequence, play out event if response is not None: processing_event.set() - response.speak() - processing_event.clear() + response.run() except Exception as e: print(e) + finally: + processing_event.clear() -- cgit v1.2.3