summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()