Skip to content

Commit 6aa6720

Browse files
Update spsa.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 0d948f1 commit 6aa6720

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

‎spsa.py‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,10 @@ def run_fastchess_match(plus_params, minus_params, args, iteration):
243243
try:
244244
result = subprocess.run(cmd, capture_output=True, text=True, check=True)
245245
except subprocess.CalledProcessError as e:
246-
print("Return code:", e.returncode)
247-
print("STDOUT:")
248-
print(e.stdout)
249-
print("STDERR:")
250-
print(e.stderr)
246+
logger.error("fastchess exited %s", e.returncode)
247+
logger.debug("STDOUT:\n%s", e.stdout)
248+
logger.debug("STDERR:\n%s", e.stderr)
249+
return 0.5, 0.5
251250
try:
252251
with open(temp_config_path, "r", encoding="utf-8") as f:
253252
output_config = json.load(f)

0 commit comments

Comments
 (0)