diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-03-02 12:48:59 +0000 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-03-02 12:48:59 +0000 |
commit | 5c3cb04cbc195d6e20824cb80fa12173623eb9db (patch) | |
tree | 6696e4b0e647421f6bb239bb874324c7c3bd5d76 /pykolab/conf/__init__.py | |
parent | ca23a3074be34a28b1595e9db167b7a6f7459645 (diff) | |
download | pykolab-5c3cb04cbc195d6e20824cb80fa12173623eb9db.tar.gz |
conf.get_list() should always return a list
Diffstat (limited to 'pykolab/conf/__init__.py')
-rw-r--r-- | pykolab/conf/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pykolab/conf/__init__.py b/pykolab/conf/__init__.py index e6db94e..01282f2 100644 --- a/pykolab/conf/__init__.py +++ b/pykolab/conf/__init__.py @@ -463,12 +463,12 @@ class Conf(object): setting = self.get_raw(section, key) if setting == None: - return None + return [] raw_values = setting.split(',') if raw_values == None: - return None + return [] for raw_value in raw_values: untrimmed_values.extend(raw_value.split(' ')) |