summaryrefslogtreecommitdiff
path: root/alot/account.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2017-05-31 14:52:54 -0700
committerDylan Baker <dylan@pnwbakers.com>2017-06-07 10:05:26 -0700
commita41abb8ffbc79e5df018f44bdf5d4d0c44a5e7f6 (patch)
treeb7789b6bc69331e4bcd8d1ad239e00dcffc49beb /alot/account.py
parentfbc223984e3555b4c50b0ad7b9eb9f24d6ae1ac9 (diff)
account: Don't assume that self.aliases is set
Currently this code works because alot always populates aliases so it's not None, but if for some reason it doesn't then get_addresses will assert.
Diffstat (limited to 'alot/account.py')
-rw-r--r--alot/account.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/account.py b/alot/account.py
index dda894eb..5965afa2 100644
--- a/alot/account.py
+++ b/alot/account.py
@@ -69,7 +69,7 @@ class Account(object):
draft_tags.append('draft')
self.address = address
- self.aliases = aliases
+ self.aliases = aliases or []
self.alias_regexp = alias_regexp
self.realname = realname
self.gpg_key = gpg_key