Skip to content

Commit

Permalink
Merge pull request #321 from HebaruSan/fix/yaml-multidoc
Browse files Browse the repository at this point in the history
Quick fix for multi-doc YAML
  • Loading branch information
HebaruSan authored Dec 15, 2023
2 parents 05fc3d7 + 455f9bb commit 4792389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netkan/netkan/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(
self.game_id = game_id
yaml = YAML(typ='safe')
# YAML parser doesn't allow tabs, so replace with spaces
self._raw = yaml.load(self.contents.replace('\t', ' '))
self._raw = next(yaml.load_all(self.contents.replace('\t', ' ')))
# Extract kref_src + kref_id from the kref
self.kref_src: Optional[str]
self.kref_id: Optional[str]
Expand Down

0 comments on commit 4792389

Please sign in to comment.