Skip to content

Commit

Permalink
Fix bad syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamenot committed Jan 23, 2024
1 parent 3a4aee7 commit 94da02f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smarts/core/utils/sumo_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ async def handle_client(
message = data.decode("utf-8")
# print(f"Received {message!r} from {addr}")
if message.startswith("sumo"):
while {port := find_free_port()} in self._used_ports:
while (port := find_free_port()) in self._used_ports:
pass
self._used_ports.add(port)
# Send a response back to the client
Expand Down

0 comments on commit 94da02f

Please sign in to comment.