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
|
||||
def do(self, function_name, data):
|
||||
if function_name in dir(self.module):
|
||||
# try:
|
||||
try:
|
||||
eval("self.module."+function_name)(data)
|
||||
# except:
|
||||
# dbg("problem in module")
|
||||
except:
|
||||
dbg("problem in module")
|
||||
def do_jobs(self):
|
||||
for job in self.jobs:
|
||||
job.check()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue