mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 07:33:27 -06:00
LGTM: Fix exception in permission_del
Instantiating an exception, but not raising it, has no effect. https://pagure.io/freeipa/issue/7344 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
This commit is contained in:
parent
d3f43a6737
commit
de616888d5
@ -1072,7 +1072,7 @@ class permission_del(baseldap.LDAPDelete):
|
||||
try:
|
||||
self.obj.remove_aci(entry)
|
||||
except errors.NotFound:
|
||||
errors.NotFound(
|
||||
raise errors.NotFound(
|
||||
reason=_('ACI of permission %s was not found') % keys[0])
|
||||
|
||||
return dn
|
||||
|
Loading…
Reference in New Issue
Block a user