From b68214022c403faa8f09b9bab47f6a9861a41a30 Mon Sep 17 00:00:00 2001 From: kakwa Date: Sat, 9 Feb 2019 20:47:34 +0100 Subject: [PATCH] fix error handling when adding user that already exists --- ldapcherry/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ldapcherry/__init__.py b/ldapcherry/__init__.py index 0acb0e0..4e61fc9 100644 --- a/ldapcherry/__init__.py +++ b/ldapcherry/__init__.py @@ -678,6 +678,7 @@ class LdapCherry(object): self._add_notification( 'User already exists in backend "' + b + '"' ) + return if not added: raise e