summaryrefslogtreecommitdiffstats
path: root/ipa-admintools/ipa-listdelegation
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-03-17 13:16:56 -0400
committerRob Crittenden <rcritten@redhat.com>2008-03-17 13:16:56 -0400
commitc3fedca013cebc29ac9e162c7a59db1a96c2a30a (patch)
tree6a064a9d56bc34492c612e3ba662f1adea574965 /ipa-admintools/ipa-listdelegation
parenta39f38f65b6dd16643ee68dc46ef96bf8cda2f73 (diff)
downloadfreeipa-c3fedca013cebc29ac9e162c7a59db1a96c2a30a.tar.gz
freeipa-c3fedca013cebc29ac9e162c7a59db1a96c2a30a.tar.xz
freeipa-c3fedca013cebc29ac9e162c7a59db1a96c2a30a.zip
Don't define bogus realm/server in configuration file by default
Add default exception handler to avoid backtraces in cmdline tools Enhance error message when the IPA server or realm can't be found 437565
Diffstat (limited to 'ipa-admintools/ipa-listdelegation')
-rw-r--r--ipa-admintools/ipa-listdelegation3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipa-admintools/ipa-listdelegation b/ipa-admintools/ipa-listdelegation
index 217b16dd..4dabc81e 100644
--- a/ipa-admintools/ipa-listdelegation
+++ b/ipa-admintools/ipa-listdelegation
@@ -109,3 +109,6 @@ except xmlrpclib.ProtocolError, e:
except ipaerror.IPAError, e:
print("Delegation list failed: " + str(e))
sys.exit(1)
+except Exception, e:
+ print "%s" % str(e)
+ sys.exit(1)