From b3b67b654a3e731a4bcff40aac8a3b38c67eff7a Mon Sep 17 00:00:00 2001 From: tico-tico Date: Sat, 18 Mar 2017 13:21:40 +0300 Subject: [PATCH] fix for crashy external Komodo as a kibitzer Sending *True* instead of *true* could crash **Komodo 8** engine. For instance `setoption name Ponder value True`. --- Code/RunKibitzer.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Code/RunKibitzer.py b/Code/RunKibitzer.py index b18497f..c3d1c2e 100644 --- a/Code/RunKibitzer.py +++ b/Code/RunKibitzer.py @@ -203,6 +203,8 @@ def lanzaMotor(self): if valor is None: orden = "setoption name %s" % opcion else: + if type(valor) == bool: + valor = str(valor).lower() orden = "setoption name %s value %s" % (opcion, valor) self.ready_ok(orden) @@ -697,6 +699,8 @@ def lanzaMotor(self, siMultiPV=False): else: if opcion.upper() == "MULTIPV" and not siMultiPV: continue + if type(valor) == bool: + valor = str(valor).lower() orden = "setoption name %s value %s" % (opcion, valor) self.ready_ok(orden)