Skip to content

Key not found when using game.set_property #91

@Hoskiss

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

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