throw exception on no new kata

This commit is contained in:
Sander Land committed 2020-10-12 14:23:39 +02:00
1 parent 1f31ef4d33
commit a5ce5e4be2
16 files changed
+10 -11

No files matched your search

+2 -3
View File
@@ -430,10 +430,9 @@ def generate_ai_move(game: Game, ai_mode: str, ai_settings: Dict) -> Tuple[Move,
ai_thoughts += f"{ai_mode} strategy. Top 5 Candidates {', '.join(cands)} "
aimove = moves_with_settledness[0][0]
else:
game.katrain.log(
"No moves found - are you using an older KataGo with no per-move ownership info?", OUTPUT_ERROR
raise(
Exception("No moves found - are you using an older KataGo with no per-move ownership info?")
)
aimove = top_cand
else:
if ai_mode not in [AI_DEFAULT, AI_HANDICAP]:
game.katrain.log(f"Unknown AI mode {ai_mode} or policy missing, using default.", OUTPUT_INFO)