improved logging, fixed creator to create
This commit is contained in:
parent
a821f97f98
commit
07a2ffae51
4 changed files with 4 additions and 4 deletions
|
|
@ -174,7 +174,7 @@ class ConfigParser:
|
|||
except KeyError, k:
|
||||
self.log.w("Key '" + str(k) + "' not in classItem " + str(clazzItem))
|
||||
except Exception, e:
|
||||
self.log.w("Error while replace: " + str(e))
|
||||
self.log.w("Error while replace: " + clazz + str(e))
|
||||
finally:
|
||||
if path in sys.path:
|
||||
del sys.path[sys.path.index(path)]
|
||||
|
|
|
|||
|
|
@ -18,5 +18,5 @@ class EmailTask(Task):
|
|||
pass
|
||||
|
||||
|
||||
def creator(taskDict):
|
||||
def create(taskDict):
|
||||
return EmailTask(**taskDict)
|
||||
|
|
@ -18,5 +18,5 @@ class SmsTask(Task):
|
|||
pass
|
||||
|
||||
|
||||
def creator(taskDict):
|
||||
def create(taskDict):
|
||||
return SmsTask(**taskDict)
|
||||
|
|
@ -19,5 +19,5 @@ class XmppTask(Task):
|
|||
|
||||
|
||||
|
||||
def creator(taskDict):
|
||||
def create(taskDict):
|
||||
return XmppTask(taskDict)
|
||||
Loading…
Add table
Add a link
Reference in a new issue