summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/plugins')
-rw-r--r--ipalib/plugins/user.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/user.py b/ipalib/plugins/user.py
index c3bcddd23..891a73a87 100644
--- a/ipalib/plugins/user.py
+++ b/ipalib/plugins/user.py
@@ -261,7 +261,7 @@ class user_add(LDAPCreate):
self.api.Command['group_show'](keys[-1])
try:
self.api.Command['user_show'](keys[-1])
- raise errors.DuplicateEntry()
+ self.obj.handle_duplicate_entry(*keys)
except errors.NotFound:
raise errors.ManagedGroupExistsError(group=keys[-1])
except errors.NotFound: