Skip to content

Commit

Permalink
catch LookupError if msg has no from header
Browse files Browse the repository at this point in the history
fix #1548
  • Loading branch information
pazz committed Jan 1, 2021
1 parent 7915ea6 commit 70d7cb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alot/db/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def __init__(self, dbman, msg, thread=None):
sender = decode_header(msg.header('From'))
if not sender:
sender = decode_header(msg.header('Sender'))
except NullPointerError:
except (NullPointerError, LookupError):
sender = None
if sender:
self._from = sender
Expand Down

0 comments on commit 70d7cb6

Please sign in to comment.