[Freeipa-devel] [PATCH] 0001 pwpolicy-add: Added better error handling
Jan Cholasta
jcholast at redhat.com
Tue Aug 26 16:19:50 UTC 2014
Hi,
Dne 26.8.2014 v 17:53 Thorsten Scherf napsal(a):
> pwpolicy-add: Added better error handling
> Make error message more meaningful when a password policy is added
> for a non
> existing group.
> https://fedorahosted.org/freeipa/ticket/4334
thanks for the patch.
Instead of raising NotFound manually, please use:
self.api.Object.group.handle_not_found(keys[-1])
It raises NotFound as well, but automatically creates the error message.
Honza
--
Jan Cholasta
More information about the Freeipa-devel
mailing list