Merge pull request #532 from Xenopathic/patch-1

taskwarrior: Prevent KeyError on missing project
This commit is contained in:
facetoe 2017-01-24 03:03:50 +08:00 committed by GitHub
commit 9f71f31d57

View File

@ -92,7 +92,7 @@ class Taskwarrior(IntervalModule):
if self.next_task is not None:
format_values['next'] = self.next_task['description']
format_values['project'] = self.next_task['project']
format_values['project'] = self.next_task.get('project', '')
self.output = {
'full_text': self.format.format(**format_values),