Skip to content

Commit

Permalink
fix: explicit None check for _yaml_loader
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Oct 4, 2023
1 parent c061afa commit 19225d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion horde_worker_regen/bridge_data/data_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def save(self, file_path: str) -> None:
file_path (str): The path to the file to save the config model to.
"""

if not self._yaml_loader:
if self._yaml_loader is None:
self._yaml_loader = YAML()

with open(file_path, "w") as f:
Expand Down

0 comments on commit 19225d3

Please sign in to comment.