diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-05-07 15:10:29 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-05-07 15:10:29 +0200 |
commit | 2cd2c4dfa147806c45a3654ed6fb79c6a4d8f9f4 (patch) | |
tree | 1ab85b3fdd203e40d6417c8c550f56a80f493785 /alot/widgets | |
parent | 687e08cfcedc18e605fecf17bc0914154ad1b2fd (diff) |
widgets/thread: fix message summary with no subject
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() |