summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-02-11 14:38:26 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-02-11 14:38:26 +0100
commit01efa922ba167e930ed426c610d30ff3cfd4ae6f (patch)
tree7b68a73b773351ab8ad5c77cfce8bd4c2bbe6e64
parent0424098e4173f44bd206ccb89c24e62545977f7c (diff)
downloadpykolab-01efa922ba167e930ed426c610d30ff3cfd4ae6f.tar.gz
Test for self._auth, but not as a dictionary
-rw-r--r--pykolab/auth/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pykolab/auth/__init__.py b/pykolab/auth/__init__.py
index 8ca0863..2aee830 100644
--- a/pykolab/auth/__init__.py
+++ b/pykolab/auth/__init__.py
@@ -139,7 +139,7 @@ class Auth(object):
else:
section = domain
- if not self._auth.has_key(section) or self._auth == None:
+ if not self._auth or self._auth == None:
return
self._auth._disconnect()