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:09 +0200
commit4a95108d5c911f1a0ff3dc8b4dddee71b70700fc (patch)
tree037abbfea53da02c1a791b308996204ce60ff310
parentbd72f5aafe266cc15ffaf0430fdd7f4f8f358d9c (diff)
downloadpykolab-4a95108d5c911f1a0ff3dc8b4dddee71b70700fc.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 6eaa874..f4de1e1 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: