1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-01 18:11:18 +08:00

changed concat of strings to f-strings and redundant type conversion was removed (#1767)

Co-authored-by: Linlang <Lv.Linlang@hotmail.com>
This commit is contained in:
igeni
2024-05-28 07:13:12 +03:00
committed by GitHub
parent 02fe6b6974
commit 907c888c23

View File

@@ -35,7 +35,7 @@ class Client:
def connect_server(self):
"""Connect to server."""
try:
self.sio.connect("ws://" + self.server_host + ":" + str(self.server_port))
self.sio.connect(f"ws://{self.server_host}:{self.server_port}")
except socketio.exceptions.ConnectionError:
self.logger.error("Cannot connect to server - check your network or server status")