diff --git a/ldapcherry/__init__.py b/ldapcherry/__init__.py index a1cee82..cbbee32 100644 --- a/ldapcherry/__init__.py +++ b/ldapcherry/__init__.py @@ -206,7 +206,7 @@ class LdapCherry(object): key, ) except MissingParameter as e: - raise e + raise except Exception as e: self._handle_exception(e) raise BackendModuleInitFail(module) diff --git a/ldapcherry/backend/backendLdap.py b/ldapcherry/backend/backendLdap.py index 7504cde..32cf028 100644 --- a/ldapcherry/backend/backendLdap.py +++ b/ldapcherry/backend/backendLdap.py @@ -130,7 +130,7 @@ class Backend(ldapcherry.backend.Backend): severity=logging.ERROR, msg="unknow ldap exception in ldap backend", ) - raise e + raise def _connect(self): ldap_client = ldap.initialize(self.uri)