Skip to content

Commit

Permalink
changed concat of strings to f-strings and redundant type conversion …
Browse files Browse the repository at this point in the history
…was removed (#1767)

Co-authored-by: Linlang <Lv.Linlang@hotmail.com>
  • Loading branch information
igeni and SunsetWolf authored May 28, 2024
1 parent 02fe6b6 commit 907c888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qlib/data/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(self, host, port):
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")

Expand Down

0 comments on commit 907c888

Please sign in to comment.