summaryrefslogtreecommitdiffstats
path: root/ipa-admintools
diff options
context:
space:
mode:
authorrcritten@redhat.com <rcritten@redhat.com>2007-09-24 15:22:17 -0400
committerrcritten@redhat.com <rcritten@redhat.com>2007-09-24 15:22:17 -0400
commit2035297e225fc94f30a6f9fc2267346e08caa007 (patch)
tree2169fb73a3a8cfc6aee0d86f0e0976799d5be9de /ipa-admintools
parent5cdfc5bd3b63bd20071b75e3e70ebbc491d51589 (diff)
downloadfreeipa.git-2035297e225fc94f30a6f9fc2267346e08caa007.tar.gz
freeipa.git-2035297e225fc94f30a6f9fc2267346e08caa007.tar.xz
freeipa.git-2035297e225fc94f30a6f9fc2267346e08caa007.zip
Add a missing exception catcher
Diffstat (limited to 'ipa-admintools')
-rw-r--r--ipa-admintools/ipa-delgroup3
-rw-r--r--ipa-admintools/ipa-deluser3
-rw-r--r--ipa-admintools/ipa-findgroup3
-rw-r--r--ipa-admintools/ipa-finduser3
4 files changed, 12 insertions, 0 deletions
diff --git a/ipa-admintools/ipa-delgroup b/ipa-admintools/ipa-delgroup
index 50967a49..c10e7125 100644
--- a/ipa-admintools/ipa-delgroup
+++ b/ipa-admintools/ipa-delgroup
@@ -63,6 +63,9 @@ def main():
except xmlrpclib.ProtocolError, e:
print "Unable to connect to IPA server: %s" % (e.errmsg)
return 1
+ except ipa.ipaerror.IPAError, e:
+ print "%s" % (e.message)
+ return 1
return 0
diff --git a/ipa-admintools/ipa-deluser b/ipa-admintools/ipa-deluser
index bcee2afd..659c3869 100644
--- a/ipa-admintools/ipa-deluser
+++ b/ipa-admintools/ipa-deluser
@@ -63,6 +63,9 @@ def main():
except xmlrpclib.ProtocolError, e:
print "Unable to connect to IPA server: %s" % (e.errmsg)
return 1
+ except ipa.ipaerror.IPAError, e:
+ print "%s" % (e.message)
+ return 1
return 0
diff --git a/ipa-admintools/ipa-findgroup b/ipa-admintools/ipa-findgroup
index 92b3b25b..082e6e50 100644
--- a/ipa-admintools/ipa-findgroup
+++ b/ipa-admintools/ipa-findgroup
@@ -81,6 +81,9 @@ def main():
except xmlrpclib.ProtocolError, e:
print "Unable to connect to IPA server: %s" % (e.errmsg)
return 1
+ except ipa.ipaerror.IPAError, e:
+ print "%s" % (e.message)
+ return 1
return 0
diff --git a/ipa-admintools/ipa-finduser b/ipa-admintools/ipa-finduser
index 409d2e3d..b7711286 100644
--- a/ipa-admintools/ipa-finduser
+++ b/ipa-admintools/ipa-finduser
@@ -81,6 +81,9 @@ def main():
except xmlrpclib.ProtocolError, e:
print "Unable to connect to IPA server: %s" % (e.errmsg)
return 1
+ except ipa.ipaerror.IPAError, e:
+ print "%s" % (e.message)
+ return 1
return 0