summaryrefslogtreecommitdiff
path: root/alot/account.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-02-27 15:08:56 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2012-02-27 15:08:56 +0000
commit770592dc10f2ed7bf6b52d70c157395900139837 (patch)
tree6370a5e7b5feb7c90c32e5d9aecd24457cd26709 /alot/account.py
parent99b788c33f089fc43574dd187322bffca32d48a9 (diff)
fix issue with abook format
closes #369
Diffstat (limited to 'alot/account.py')
-rw-r--r--alot/account.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/alot/account.py b/alot/account.py
index 12cb3c23..ab6c9af7 100644
--- a/alot/account.py
+++ b/alot/account.py
@@ -231,7 +231,8 @@ class AbookAddressBook(AddressBook):
def get_contacts(self):
c = self._config
- return [(c[id]['name'], c[id]['email']) for id in c.sections]
+ return [(c[id]['name'], c[id]['email']) for id in c.sections if \
+ c[id]['email'] is not None]
class MatchSdtoutAddressbook(AddressBook):