summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-05-22 11:47:09 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-05-22 11:47:39 +0200
commit9b34909c840fef0f8c2c1c5f0faf25c6a4692b73 (patch)
treec7838d4a842448b1f224be4260e72e1935ed02fe
parent44080e6e10733d80dc9a5bf230eabf54083f7b90 (diff)
downloadpykolab-9b34909c840fef0f8c2c1c5f0faf25c6a4692b73.tar.gz
Catch a case in which the list of domain name spaces is empty
-rw-r--r--pykolab/auth/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pykolab/auth/__init__.py b/pykolab/auth/__init__.py
index dae8edc..9a5c262 100644
--- a/pykolab/auth/__init__.py
+++ b/pykolab/auth/__init__.py
@@ -228,6 +228,8 @@ class Auth(pykolab.base.Base):
except:
if not self.domain == kolab_primary_domain:
return [(self.domain, [])]
+ else:
+ domains = []
# If no domains are found, the primary domain is used.
if len(domains) < 1: