summaryrefslogtreecommitdiffstats
path: root/ipa-admintools/ipa-moddelegation
diff options
context:
space:
mode:
Diffstat (limited to 'ipa-admintools/ipa-moddelegation')
-rw-r--r--ipa-admintools/ipa-moddelegation4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipa-admintools/ipa-moddelegation b/ipa-admintools/ipa-moddelegation
index d6b09ffb3..39f6b2210 100644
--- a/ipa-admintools/ipa-moddelegation
+++ b/ipa-admintools/ipa-moddelegation
@@ -33,6 +33,7 @@ try:
import ldap
import copy
import errno
+ import socket
except ImportError:
print >> sys.stderr, """\
There was a problem importing one of the required Python modules. The
@@ -236,6 +237,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)