summaryrefslogtreecommitdiff
path: root/tests/db
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2017-09-06 14:10:35 -0700
committerDylan Baker <dylan@pnwbakers.com>2017-09-06 14:28:23 -0700
commite1b17942b0ec6fbd351df4c807debd4dc141dcdb (patch)
treea3f70118d78999eb99beb9fbc4b18286c31c5a3b /tests/db
parent994320a2750bf6a765cc80d6d8e7ee44927ea3f7 (diff)
account: Fix Address comparison to b'' and u''
This uses a try/except because comparing an address to an empty string should be a fairly uncommon event and try/except will be faster than `if '@' not in other` in the case where '@' is in other. This stops alot from crashing if there is no 'From' header in the email. Outlook generates drafts without a 'From' header. Fixes #1050
Diffstat (limited to 'tests/db')
0 files changed, 0 insertions, 0 deletions