code optimizations
This commit is contained in:
+2
-1
@@ -32,5 +32,6 @@ class TriggerScheduler(AppClass):
|
||||
try:
|
||||
while True:
|
||||
await asyncio.sleep(1) # Keep the main function alive
|
||||
except KeyboardInterrupt:
|
||||
except asyncio.exceptions.CancelledError:
|
||||
self.log.info("Exiting, stopping all triggers")
|
||||
await self.stop_triggers()
|
||||
|
||||
Reference in New Issue
Block a user