diff options
Diffstat (limited to 'ipa-admintools/ipa-passwd')
-rw-r--r-- | ipa-admintools/ipa-passwd | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ipa-admintools/ipa-passwd b/ipa-admintools/ipa-passwd index fc39b7f8..e9d04a6d 100644 --- a/ipa-admintools/ipa-passwd +++ b/ipa-admintools/ipa-passwd @@ -30,6 +30,7 @@ try: import ldap import getpass import errno + import socket except ImportError: print >> sys.stderr, """\ There was a problem importing one of the required Python modules. The @@ -142,6 +143,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) |