This commit is contained in:
j 2016-02-12 22:50:42 +05:30
parent 3b8787d15f
commit 37046903e0

View file

@ -81,7 +81,7 @@ class Tasks(Thread):
tasks = json.load(f) tasks = json.load(f)
for task in tasks: for task in tasks:
if len(task) == 2: if len(task) == 2:
self.q.put(tuple(task[0], tuple(task[1]))) self.q.put((task[0], tuple(task[1])))
logger.debug('loaded %s tasks', len(tasks)) logger.debug('loaded %s tasks', len(tasks))
except: except:
logger.debug('failed to load saved tasks', exc_info=True) logger.debug('failed to load saved tasks', exc_info=True)