Commits

Arnaud Grausem committed ce6e32c

Bug fixed: Bad exception handling when testing an LDAP connection

  • Participants
  • Parent commits ee49038
  • Branches stable

Comments (0)

Files changed (1)

thot/utils/ldaplib.py

             logger.error('Invalid credentials to bind to ldap server')
             valid_con = False
         except ldap.LDAPError, ldape:
-            logger.error(e)
+            logger.error(ldape)
             valid_con = False
         finally:
             con.unbind_s()