mirror of
https://github.com/wassname/ray.git
synced 2026-07-01 18:39:41 +08:00
Fix socket error exception in Python 2. (#833)
This commit is contained in:
committed by
Philipp Moritz
parent
508eec58f5
commit
a75ccc8032
@@ -478,7 +478,7 @@ def start_ui(redis_address, stdout_file=None, stderr_file=None, cleanup=True):
|
||||
port_test_socket.bind(("127.0.0.1", port))
|
||||
port_test_socket.close()
|
||||
break
|
||||
except OSError:
|
||||
except socket.error:
|
||||
port += 1
|
||||
new_env = os.environ.copy()
|
||||
new_env["REDIS_ADDRESS"] = redis_address
|
||||
|
||||
Reference in New Issue
Block a user