mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-12 15:26:54 +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:
@@ -35,7 +35,7 @@ class Client:
|
|||||||
def connect_server(self):
|
def connect_server(self):
|
||||||
"""Connect to server."""
|
"""Connect to server."""
|
||||||
try:
|
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:
|
except socketio.exceptions.ConnectionError:
|
||||||
self.logger.error("Cannot connect to server - check your network or server status")
|
self.logger.error("Cannot connect to server - check your network or server status")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user