Skip to content

Commit

Permalink
Catch LookupError if message has no Subject header
Browse files Browse the repository at this point in the history
Close #1613
  • Loading branch information
matclab authored and pazz committed Apr 12, 2023
1 parent faaa846 commit 6ffeff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alot/db/thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def _refresh(self, thread):
try:
first_msg = list(thread.toplevel())[0]
subject = first_msg.header('subject')
except IndexError:
except (IndexError, LookupError):
subject = ''
self._subject = subject

Expand Down

0 comments on commit 6ffeff9

Please sign in to comment.