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
  • Loading branch information
igeni committed Mar 22, 2024
1 parent 1bb8f2f commit 94c4bce
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 94c4bce

Please sign in to comment.