aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorMark Powers <mark@marks.kitchen>2021-07-19 20:49:51 -0500
committerMark Powers <mark@marks.kitchen>2021-07-19 20:49:51 -0500
commitdc62736d843949a4f6a01cbd1af09c25a38673a9 (patch)
tree7efe8f9add595cff625c3c4fc549ce38f35c80c7 /main.py
parent5b2a3f0da147f17f6ab32af8e3d14fb29de71fd1 (diff)
Refactor how some events work
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py5
1 files changed, 3 insertions, 2 deletions
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()