Commit 63d96e4c authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

luxi: Pass socket path directly to exception, not in tuple


Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent 4d98c565
...@@ -162,7 +162,7 @@ class Transport: ...@@ -162,7 +162,7 @@ class Transport:
raise TimeoutError("Connect timed out: %s" % str(err)) raise TimeoutError("Connect timed out: %s" % str(err))
except socket.error, err: except socket.error, err:
if err.args[0] in (errno.ENOENT, errno.ECONNREFUSED): if err.args[0] in (errno.ENOENT, errno.ECONNREFUSED):
raise NoMasterError((address,)) raise NoMasterError(address)
raise raise
self.socket.settimeout(self._rwtimeout) self.socket.settimeout(self._rwtimeout)
except (socket.error, NoMasterError): except (socket.error, NoMasterError):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment