don't die on bad plugin
This commit is contained in:
parent
f7a307c9dd
commit
5608883b45
1 changed files with 4 additions and 4 deletions
|
@ -74,10 +74,10 @@ class Plugin(object):
|
||||||
print self.module.crontable
|
print self.module.crontable
|
||||||
def do(self, function_name, data):
|
def do(self, function_name, data):
|
||||||
if function_name in dir(self.module):
|
if function_name in dir(self.module):
|
||||||
# try:
|
try:
|
||||||
eval("self.module."+function_name)(data)
|
eval("self.module."+function_name)(data)
|
||||||
# except:
|
except:
|
||||||
# dbg("problem in module")
|
dbg("problem in module")
|
||||||
def do_jobs(self):
|
def do_jobs(self):
|
||||||
for job in self.jobs:
|
for job in self.jobs:
|
||||||
job.check()
|
job.check()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue