protect from bad functions in cron

This commit is contained in:
Ryan Huber 2014-11-24 19:01:41 -08:00
parent 2dcb4c575b
commit ec6a3dc90e

View file

@ -119,7 +119,13 @@ class Job(object):
return self.__str__()
def check(self):
if self.lastrun + self.interval < time.time():
self.function()
if not debug:
try:
self.function()
except:
dbg("problem")
else:
self.function()
self.lastrun = time.time()
pass