diff options
Diffstat (limited to 'ipalib/plugins')
-rw-r--r-- | ipalib/plugins/idviews.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/ipalib/plugins/idviews.py b/ipalib/plugins/idviews.py index 9f58c8327..3bd5ad67f 100644 --- a/ipalib/plugins/idviews.py +++ b/ipalib/plugins/idviews.py @@ -686,7 +686,12 @@ class baseidoverride_find(LDAPSearch): def post_callback(self, ldap, entries, truncated, *args, **options): for entry in entries: - self.obj.convert_anchor_to_human_readable_form(entry, **options) + try: + self.obj.convert_anchor_to_human_readable_form(entry, **options) + except errors.NotFound: + # If the conversion to readle form went wrong, do not + # abort the whole find command. Use non-converted entry. + pass return truncated @@ -694,7 +699,12 @@ class baseidoverride_show(LDAPRetrieve): __doc__ = _('Display information about an ID override.') def post_callback(self, ldap, dn, entry_attrs, *keys, **options): - self.obj.convert_anchor_to_human_readable_form(entry_attrs, **options) + try: + self.obj.convert_anchor_to_human_readable_form(entry_attrs, **options) + except errors.NotFound: + # If the conversion to readle form went wrong, do not + # abort the whole show command. Use non-converted entry. + pass return dn |