diff --git a/wasp/apps/pager.py b/wasp/apps/pager.py index edb5418..db12b3f 100644 --- a/wasp/apps/pager.py +++ b/wasp/apps/pager.py @@ -89,7 +89,9 @@ class NotificationApp(PagerApp): id = next(iter(notes)) note = notes[id] del notes[id] - self._msg = '{}\n\n{}'.format(note['title'], note['body']) + title = note['title'] if 'title' in note else 'Untitled' + body = note['body'] if 'body' in note else '' + self._msg = '{}\n\n{}'.format(title, body) super().foreground()