From ff23477eae9edaa6352221fa238d3f38ec4a400f Mon Sep 17 00:00:00 2001 From: Andrew Grant Date: Fri, 11 Jun 2021 12:57:01 -0400 Subject: [PATCH] Fix killing Cutechess on Windows Missing include throws ignored exceptions without executing TASKKILL --- Client/Client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Client/Client.py b/Client/Client.py index 021d0a9..32fe11c 100644 --- a/Client/Client.py +++ b/Client/Client.py @@ -31,7 +31,7 @@ import zipfile import shutil import multiprocessing -from subprocess import PIPE, Popen +from subprocess import PIPE, Popen, call from itertools import combinations_with_replacement @@ -301,7 +301,7 @@ def kill_cutechess(cutechess): try: if IS_WINDOWS: - subprocess.call(['taskkill', '/F', '/T', '/PID', str(cutechess.pid)]) + call(['taskkill', '/F', '/T', '/PID', str(cutechess.pid)]) if IS_LINUX: cutechess.kill()