We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecec12c commit bbf070fCopy full SHA for bbf070f
1 file changed
annotator/__main__.py
@@ -387,7 +387,7 @@ def clean_game(game):
387
"""
388
node = game.end()
389
390
- while not node == game.root():
+ while True:
391
prev_node = node.parent
392
393
node.comment = None
@@ -396,6 +396,9 @@ def clean_game(game):
396
if not variation.is_main_variation():
397
node.remove_variation(variation)
398
399
+ if node == game.root():
400
+ break
401
+
402
node = prev_node
403
404
return node.root()
0 commit comments