Skip to content

Commit

Permalink
Strip whitespace when receiving "readyok"
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkZH committed Sep 13, 2023
1 parent f22e328 commit f2fd4d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chess/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -1387,7 +1387,7 @@ def start(self, engine: UciProtocol) -> None:
engine._isready()

def line_received(self, engine: UciProtocol, line: str) -> None:
if line == "readyok":
if line.strip() == "readyok":
self.result.set_result(None)
self.set_finished()
else:
Expand Down

0 comments on commit f2fd4d3

Please sign in to comment.