mirror of
https://github.com/kakwa/ldapcherry
synced 2025-07-04 20:37:48 +02:00
Better exception re-raising
re-raising the exception without specifying the exception object gives exactly the previous exception (including the correct stacktrace) which is nicer to have for debugging.
This commit is contained in:
parent
e3fe0b4bfb
commit
27fca43ac6
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue