Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Commit

Permalink
catch exception in scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
balu committed Nov 17, 2019
1 parent 6d608b0 commit b60d27f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion deconzpy/Router.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,10 @@ def __runScheduler(self, sched):
maxSleep = 3
while True:
# print("Scheduling thread")
wTime = sched.run(blocking=False)
try:
wTime = sched.run(blocking=False)
except Exception as e:
logger.error("Exception in shedule event %s",e)
if wTime == None or wTime > maxSleep:
wTime = maxSleep
time.sleep(wTime)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from setuptools import setup, find_packages


__version__ = "0.9.5"
__version__ = "0.9.6"
__author__ = "balu-"
__url__ = "https://github.com/balu-/deconzpy"

Expand Down

0 comments on commit b60d27f

Please sign in to comment.