summaryrefslogtreecommitdiffstats
path: root/ipa-admintools/ipa-listdelegation
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-05-13 10:59:37 -0400
committerRob Crittenden <rcritten@redhat.com>2008-05-13 12:00:34 -0400
commitcf7c97d81b40f6ee92e1e8ccc60c4051f0baf266 (patch)
tree70a6df762a0910113f5f5ed955e3cbc7ee50c26f /ipa-admintools/ipa-listdelegation
parent152530931671f2b7d21304f773667d3be7cbbd8c (diff)
downloadfreeipa-cf7c97d81b40f6ee92e1e8ccc60c4051f0baf266.tar.gz
freeipa-cf7c97d81b40f6ee92e1e8ccc60c4051f0baf266.tar.xz
freeipa-cf7c97d81b40f6ee92e1e8ccc60c4051f0baf266.zip
Catch name resolution errors coming from the socket module.
442650
Diffstat (limited to 'ipa-admintools/ipa-listdelegation')
-rw-r--r--ipa-admintools/ipa-listdelegation4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipa-admintools/ipa-listdelegation b/ipa-admintools/ipa-listdelegation
index b734ccb7..73c070ec 100644
--- a/ipa-admintools/ipa-listdelegation
+++ b/ipa-admintools/ipa-listdelegation
@@ -28,6 +28,7 @@ try:
import xmlrpclib
import kerberos
import errno
+ import socket
import ipa.aci
from ipa import ipaerror
@@ -119,6 +120,9 @@ except xmlrpclib.ProtocolError, e:
except ipaerror.IPAError, e:
print("Delegation list failed: " + str(e))
sys.exit(1)
+except socket.error, e:
+ print e[1]
+ print "Re-run with -v flag for more details."
except Exception, e:
print "%s" % str(e)
sys.exit(1)