summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/automember.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/plugins/automember.py')
-rw-r--r--ipalib/plugins/automember.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ipalib/plugins/automember.py b/ipalib/plugins/automember.py
index 0f4739316..0c2a246e1 100644
--- a/ipalib/plugins/automember.py
+++ b/ipalib/plugins/automember.py
@@ -735,7 +735,10 @@ class automember_rebuild(Command):
names = options.get(opt_name)
if names:
for name in names:
- obj.get_dn_if_exists(name)
+ try:
+ obj.get_dn_if_exists(name)
+ except errors.NotFound:
+ obj.handle_not_found(name)
search_filter = ldap.make_filter_from_attr(
obj.primary_key.name,
names,