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:42:17 +0200
commit4f71ab2bb9587fca701cf5147ba5bdef1626b0b6 (patch)
treee55ae2702f68b7732d016f84a096c4d3a4aa307b
parent944a395dc2f00cca7e47b506b7c1224657ccc557 (diff)
downloadpykolab-4f71ab2bb9587fca701cf5147ba5bdef1626b0b6.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 5037709..413ebf8 100644
--- a/pykolab/auth/ldap/__init__.py
+++ b/pykolab/auth/ldap/__init__.py
@@ -2190,7 +2190,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