Closed WolfgangFahl closed 3 years ago
The exception type now is asyncio.TimeoutError
.
Btw. it's also possible to use the engine as a context manager to ensure it gets killed no matter what. For example, the following script will fail due to an uncaught timeout error, but at least shutdown cleanly.
with chess.engine.SimpleEngine.popen_uci(["/bin/bash", "-c", "sleep 1 && echo uciok && sleep 120"]) as engine:
engine.quit()
Most engines don't do any work at shutdown, so it may also be reasonable to not even call engine.quit()
.
https://github.com/WolfgangFahl/play-chess-with-a-webcam/commit/a403e80 makes my CI fail on play-chess-with a webcam. I still have to analyze this but i assume the async-Io handling might need changes on my side.
I used to have
what should i do now?