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