summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorpatrick <p.totzke@ed.ac.uk>2011-08-11 17:20:15 +0100
committerpatrick <p.totzke@ed.ac.uk>2011-08-11 17:20:15 +0100
commit03484c0b201e71cd7312bbeca35fde39de5cc6d0 (patch)
tree2f5d11a89b0909927a816ddfe673c3c6a00b0ec4 /alot
parentde82b268546e54d27ad25291208d50a90eed7449 (diff)
fix: empty aliases
Diffstat (limited to 'alot')
-rw-r--r--alot/account.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/alot/account.py b/alot/account.py
index e4eb04a9..9b36fdb4 100644
--- a/alot/account.py
+++ b/alot/account.py
@@ -28,7 +28,9 @@ class Account:
sender_type='sendmail', sendmail_command='sendmail',
sent_mailbox=None):
self.address = address
- self.aliases = aliases.split(';')
+ self.aliases = []
+ if aliases:
+ self.aliases = aliases.split(';')
self.realname = realname
self.gpg_key = gpg_key
self.signature = signature