We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faa5a5b commit 2d9bea3Copy full SHA for 2d9bea3
pssh.py
@@ -72,10 +72,10 @@ def _connect(self):
72
"""Connect to host, throw UnknownHost exception on DNS errors"""
73
try:
74
self.client.connect(self.host, username = self.user)
75
- except socket.gaierror as e:
+ except socket.gaierror, e:
76
logger.error("Could not resolve host %s" % (self.host,))
77
raise UnknownHostException("%s - %s" % (str(e.strerror), self.host,))
78
- except socket.error as e:
+ except socket.error, e:
79
logger.error("Error connecting to host %s" % (self.host,))
80
raise ConnectionErrorException("%s for host '%s'" % (str(e.strerror), self.host,))
81
0 commit comments