Revision 082c5adb lib/luxi.py
b/lib/luxi.py | ||
---|---|---|
154 | 154 |
except socket.timeout, err: |
155 | 155 |
raise TimeoutError("Connect timed out: %s" % str(err)) |
156 | 156 |
except socket.error, err: |
157 |
if err.args[0] == errno.ENOENT:
|
|
157 |
if err.args[0] in (errno.ENOENT, errno.ECONNREFUSED):
|
|
158 | 158 |
raise NoMasterError((address,)) |
159 | 159 |
raise |
160 | 160 |
self.socket.settimeout(self._rwtimeout) |
Also available in: Unified diff