diff options
author | Rob Crittenden <rcritten@redhat.com> | 2008-05-13 10:59:37 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2008-05-13 12:00:21 -0400 |
commit | 3daa94ccc05d8d85de4309ee4e56a76bc435efc9 (patch) | |
tree | 78337f68588fd3d8aa2b7d2871e79312c13d004e /ipa-admintools/ipa-deldelegation | |
parent | b1cc4199fa152957aaabed1b22e8b828d054d9c6 (diff) | |
download | freeipa-3daa94ccc05d8d85de4309ee4e56a76bc435efc9.tar.gz freeipa-3daa94ccc05d8d85de4309ee4e56a76bc435efc9.tar.xz freeipa-3daa94ccc05d8d85de4309ee4e56a76bc435efc9.zip |
Catch name resolution errors coming from the socket module.
442650
Diffstat (limited to 'ipa-admintools/ipa-deldelegation')
-rw-r--r-- | ipa-admintools/ipa-deldelegation | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ipa-admintools/ipa-deldelegation b/ipa-admintools/ipa-deldelegation index 1eeb51720..624aefc03 100644 --- a/ipa-admintools/ipa-deldelegation +++ b/ipa-admintools/ipa-deldelegation @@ -28,6 +28,7 @@ try: import kerberos import copy import errno + import socket import ipa.aci from ipa import ipaerror @@ -140,6 +141,9 @@ except xmlrpclib.ProtocolError, e: except ipa.ipaerror.IPAError, e: print "%s" % (e.message) 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) |