taskwarrior: Prevent KeyError on missing project

This commit is contained in:
Robin McCorkell 2017-01-15 17:14:51 +00:00 committed by GitHub
parent d90511597e
commit 4283ed919a

View File

@ -80,7 +80,8 @@ 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['project'] \
if 'project' in self.next_task else ''
self.output = {
'full_text': self.format.format(**format_values),