Skip to content
This repository was archived by the owner on May 4, 2021. It is now read-only.

Commit e529757

Browse files
authored
Merge pull request #33 from tico-tico/master
fix for crashy external Komodo as a kibitzer
2 parents 1c9e37f + b3b67b6 commit e529757

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Code/RunKibitzer.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ def lanzaMotor(self):
203203
if valor is None:
204204
orden = "setoption name %s" % opcion
205205
else:
206+
if type(valor) == bool:
207+
valor = str(valor).lower()
206208
orden = "setoption name %s value %s" % (opcion, valor)
207209
self.ready_ok(orden)
208210

@@ -697,6 +699,8 @@ def lanzaMotor(self, siMultiPV=False):
697699
else:
698700
if opcion.upper() == "MULTIPV" and not siMultiPV:
699701
continue
702+
if type(valor) == bool:
703+
valor = str(valor).lower()
700704
orden = "setoption name %s value %s" % (opcion, valor)
701705
self.ready_ok(orden)
702706

0 commit comments

Comments
 (0)