summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-05-16 20:42:17 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-05-16 20:44:25 +0200
commit576a71426204e91a9d55a788df30babf9f6e848a (patch)
treed8928976ebd1a236d9766fc71462896feafdf018
parent62884c68f77046eb0e18075f0e0bd78c4e37eb8e (diff)
downloadpykolab-576a71426204e91a9d55a788df30babf9f6e848a.tar.gz
Be a little more verbose about what exactly goes wrong when we catch the exception
-rw-r--r--pykolab/auth/ldap/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/pykolab/auth/ldap/__init__.py b/pykolab/auth/ldap/__init__.py
index 97ff4df..441153a 100644
--- a/pykolab/auth/ldap/__init__.py
+++ b/pykolab/auth/ldap/__init__.py
@@ -2441,7 +2441,11 @@ class LDAP(pykolab.base.Base):
break
- except:
+ except Exception, errmsg:
+ log.error(_("An error occured using %s: %r") % (supported_control, errmsg))
+ if conf.debuglevel > 8:
+ import traceback
+ traceback.print_exc()
continue
return _results