Merge pull request #464 from JindrichPilar/taskwarrior

Taskwarrior re-raise and log error
This commit is contained in:
enkore 2016-10-17 18:36:06 +02:00 committed by GitHub
commit 8fb6b0843a

View File

@ -72,7 +72,8 @@ class Taskwarrior(IntervalModule):
self.next_id = 0
except ValueError:
print('Decoding JSON has failed')
self.logger.exception('Decoding JSON has failed')
raise
format_values = dict(urgent=len(self.urgent_tasks), ready=len(self.ready_tasks), next='')