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:
Christian Heimes 2018-01-03 10:21:46 +01:00
parent d3f43a6737
commit de616888d5

View File

@ -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