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 7b25247 commit a6dc5b5Copy full SHA for a6dc5b5
python/gp/client.py
@@ -838,9 +838,9 @@ def connect(self):
838
try:
839
if self.socktimeout: self.socket.settimeout(self.socktimeout)
840
self.socket.connect((self.host, self.port))
841
- except socket.error as (value, message):
+ except socket.error as ex:
842
raise gpProtocolException(
843
- "failed to connect to %s:%s: %s %s" % (self.host, self.port, value, message) )
+ "failed to connect to %s:%s: %s" % (self.host, self.port, str(ex)) )
844
845
self.hin = self.socket.makefile("r")
846
self.hout = self.socket.makefile("w")
0 commit comments