Skip to content

Commit

Permalink
Fix recursion in to_yaml method
Browse files Browse the repository at this point in the history
  • Loading branch information
irm-codebase committed Nov 19, 2024
1 parent e8d0f86 commit 0952586
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/calliope/attrdict.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,6 @@ def to_yaml(self, path: str | None = None) -> str:
yaml_.dump(result, stream)
yaml_str = stream.getvalue()
if path:
yaml_str = self.to_yaml()
with open(path, "w") as f:
f.write(yaml_str)
return yaml_str
Expand Down

0 comments on commit 0952586

Please sign in to comment.