diff options
Diffstat (limited to 'alot/widgets')
-rw-r--r-- | alot/widgets/thread.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/alot/widgets/thread.py b/alot/widgets/thread.py index e2328b16..2088bc39 100644 --- a/alot/widgets/thread.py +++ b/alot/widgets/thread.py @@ -54,7 +54,10 @@ class MessageSummaryWidget(urwid.WidgetWrap): super().__init__(line) def __str__(self): - subj = self.message.headers['Subject'] + try: + subj = self.message.headers['Subject'] + except KeyError: + subj = '' subj = re.sub(r'\n\s+', r' ', ','.join(subj)) author, address = self.message.get_author() |