diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2011-10-19 15:55:55 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2011-10-19 15:55:55 +0100 |
commit | 34ab794e6427e77fe9e9c21ccb7c76f31406af1a (patch) | |
tree | d75d8696d88060514b73cddc05e6615c0563f359 | |
parent | e4aeb78803525e49663ca1fa20e5381a679a0e30 (diff) |
correctly return empty stringlists
-rw-r--r-- | alot/settings.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/settings.py b/alot/settings.py index 5afd4463..25dbe73e 100644 --- a/alot/settings.py +++ b/alot/settings.py @@ -37,7 +37,7 @@ class FallbackConfigParser(SafeConfigParser): def getstringlist(self, section, option, **kwargs): value = self.get(section, option, **kwargs) - return [s.strip() for s in value.split(',')] + return [s.strip() for s in value.split(',') if s.strip()] class AlotConfigParser(FallbackConfigParser): |