summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-12-02 15:45:17 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-12-02 15:45:17 +0100
commit17e27f81cc1916f89c48c22eda7e4f62c7cd18bc (patch)
tree18ce0b562aebff24ade8e373110b07c1df4b1b6f
parent441b5366b6adbea22b400c427024463f30d6480b (diff)
downloadpykolab-17e27f81cc1916f89c48c22eda7e4f62c7cd18bc.tar.gz
More detailed verbosity when not able to set_entry_attributes()
-rw-r--r--pykolab/auth/ldap/__init__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pykolab/auth/ldap/__init__.py b/pykolab/auth/ldap/__init__.py
index 2d79df6..a2a64e0 100644
--- a/pykolab/auth/ldap/__init__.py
+++ b/pykolab/auth/ldap/__init__.py
@@ -1255,8 +1255,10 @@ class LDAP(pykolab.base.Base):
if len(modlist) > 0 and self._bind_priv() is True:
try:
self.ldap_priv.modify_s(dn, modlist)
- except:
- log.error(_("Could not update dn %r:\n%r") % (dn, modlist))
+ except Exception, errmsg:
+ log.error(_("Could not update dn:\nDN: %r\nModlist: %r\nError Message: %r") % (dn, modlist, errmsg))
+ import traceback
+ log.error("%s" % (traceback.format_exc()))
def synchronize(self, mode=0, callback=None):
"""