summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-03-02 12:48:59 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-03-02 12:48:59 +0000
commit5c3cb04cbc195d6e20824cb80fa12173623eb9db (patch)
tree6696e4b0e647421f6bb239bb874324c7c3bd5d76
parentca23a3074be34a28b1595e9db167b7a6f7459645 (diff)
downloadpykolab-5c3cb04cbc195d6e20824cb80fa12173623eb9db.tar.gz
conf.get_list() should always return a list
-rw-r--r--pykolab/conf/__init__.py4
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(' '))