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

Commit

Permalink
Merge pull request #33 from tico-tico/master
Browse files Browse the repository at this point in the history
fix for crashy external Komodo as a kibitzer
  • Loading branch information
lukasmonk authored Mar 18, 2017
2 parents 1c9e37f + b3b67b6 commit e529757
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Code/RunKibitzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit e529757

Please sign in to comment.