1
0
Fork 0
mirror of https://github.com/kakwa/ldapcherry synced 2025-07-03 11:57:41 +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:
kakwa 2015-07-28 20:30:51 +02:00
parent e3fe0b4bfb
commit 27fca43ac6
2 changed files with 2 additions and 2 deletions

View file

@ -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)