[Freeipa-devel] [PATCH] 0001 Raise ValidationError for incorrect subtree option

Ana Krivokapic akrivoka at redhat.com
Thu Jan 3 11:56:15 UTC 2013


Using incorrect input for --subtree option of ipa permission-add command 
now raises a ValidationError.

Previously, a ValueError was raised, which resulted in a user unfriendly 
error message:
ipa: ERROR: an internal error has occurred

I have added a try-except block to catch the ValueError and raise an 
appropriate ValidationError.

https://fedorahosted.org/freeipa/ticket/3233

-- 
Regards,

Ana Krivokapic
Associate Software Engineer
FreeIPA team
Red Hat Inc.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-akrivoka-0001-Raise-ValidationError-for-incorrect-subtree-option.patch
Type: text/x-patch
Size: 1259 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20130103/dd23af22/attachment.bin>


More information about the Freeipa-devel mailing list