diff options
author | Kevin McCarthy <kmccarth@redhat.com> | 2007-09-19 13:43:52 -0700 |
---|---|---|
committer | Kevin McCarthy <kmccarth@redhat.com> | 2007-09-19 13:43:52 -0700 |
commit | 036cf58042871e91bb8c86382108da53b9c3b301 (patch) | |
tree | bdfe894e9dbc4f75ac516ced9652dbb9de0e22c9 /ipa-server/xmlrpc-server | |
parent | f17071533a73c5e989ead1b243de5397d36a38d3 (diff) | |
download | freeipa-036cf58042871e91bb8c86382108da53b9c3b301.tar.gz freeipa-036cf58042871e91bb8c86382108da53b9c3b301.tar.xz freeipa-036cf58042871e91bb8c86382108da53b9c3b301.zip |
Handle add/remove failures a little bit better.
Still some refinements that can be done, but at least it shows the failures
now.
Diffstat (limited to 'ipa-server/xmlrpc-server')
-rw-r--r-- | ipa-server/xmlrpc-server/funcs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipa-server/xmlrpc-server/funcs.py b/ipa-server/xmlrpc-server/funcs.py index 4e23fde28..52376f1cc 100644 --- a/ipa-server/xmlrpc-server/funcs.py +++ b/ipa-server/xmlrpc-server/funcs.py @@ -697,7 +697,7 @@ class IPAServer: except ipaerror.exception_for(ipaerror.LDAP_EMPTY_MODLIST): # User is already in the group failed.append(user) - except ipaerror.gen_exception(ipaerror.LDAP_NOT_FOUND): + except ipaerror.exception_for(ipaerror.LDAP_NOT_FOUND): # User or the group does not exist failed.append(user) @@ -755,7 +755,7 @@ class IPAServer: except ipaerror.exception_for(ipaerror.LDAP_EMPTY_MODLIST): # User is not in the group failed.append(user) - except ipaerror.gen_exception(ipaerror.LDAP_NOT_FOUND): + except ipaerror.exception_for(ipaerror.LDAP_NOT_FOUND): # User or the group does not exist failed.append(user) |