fix loading tasks
This commit is contained in:
parent
146e64e2ae
commit
647afcf2ab
1 changed files with 2 additions and 1 deletions
|
@ -80,7 +80,8 @@ class Tasks(Thread):
|
|||
with open(self._taskspath) as f:
|
||||
tasks = json.load(f)
|
||||
for task in tasks:
|
||||
self.q.put(task)
|
||||
if len(task) == 2:
|
||||
self.q.put(tuple(task))
|
||||
logger.debug('loaded %s tasks', len(tasks))
|
||||
except:
|
||||
logger.debug('failed to load saved tasks', exc_info=True)
|
||||
|
|
Loading…
Reference in a new issue