diff options
author | nags <nags@nags-desktop.(none)> | 2010-01-25 20:02:01 -0800 |
---|---|---|
committer | nags <nags@nags-desktop.(none)> | 2010-01-25 20:02:01 -0800 |
commit | 0dde81aea342c7677ed9b4ea01f8903621869c41 (patch) | |
tree | a33aa9ab7d343a9980b9e4e3642714ec8fab521d | |
parent | 7d79d5518da06c85dba4d42fe402b5a236101b5f (diff) |
Fixed opensolaris 10 bug
-rw-r--r-- | ldtp/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ldtp/client.py b/ldtp/client.py index dccde2c..bf626c7 100644 --- a/ldtp/client.py +++ b/ldtp/client.py @@ -53,7 +53,7 @@ class Transport(xmlrpclib.Transport): return xmlrpclib.Transport.request( self, host, handler, request_body, verbose=0) except SocketError, e: - if e.errno == 111 and 'localhost' in host: + if (e.errno == 111 or e.errno == 146) and 'localhost' in host: self._spawn_daemon() time.sleep(2) # Retry connecting again |