Paste accidents happen

This commit is contained in:
Ilan
2015-07-16 20:47:14 +02:00
parent af735c328e
commit af5e99249f
+1 -1
View File
@@ -359,7 +359,7 @@ def worker(task_queue, result_queue, timer, timeout=Conf.TIMEOUT):
# Get the function from the task
logger.info(_('{} processing [{}]').format(name, task['name']))
f = task['func']
# if it's not an instance try to get it from the stringIncrement
# if it's not an instance try to get it from the string
if not callable(task['func']):
try:
module, func = f.rsplit('.', 1)