Skip to content
This repository was archived by the owner on Aug 2, 2026. It is now read-only.
This repository was archived by the owner on Aug 2, 2026. It is now read-only.

Key not found when using game.set_property #91

Description

@Hoskiss

Hi, i want to load a sgf, and update property like this

sgf_filepath = "abc.sgf"
game = sgf.load(sgf_filepath)
game.set_property("PB", "Arthur Wesley")

error occurs

Traceback (most recent call last):
  File "/Users/amoha/scripts/./update_sgf.py", line 22, in <module>
    game.set_property("PB", "Arthur Wesley")
IndexError: unordered_map::at: key not found

thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions