Skip to content

Commit

Permalink
print invalid filepath in oort.py when yaml not found
Browse files Browse the repository at this point in the history
  • Loading branch information
sgathrid committed Jul 4, 2024
1 parent c75187f commit 065f2cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion thema/multiverse/system/outer/oort.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ def __init__(
"""
if YAML_PATH is not None:
self.YAML_PATH = YAML_PATH
assert os.path.isfile(YAML_PATH), "yaml parameter file could not be found."
assert os.path.isfile(
YAML_PATH
), f"yaml parameter file could not be found: {YAML_PATH}"
try:
with open(YAML_PATH, "r") as f:
yamlParams = OmegaConf.load(f)
Expand Down

0 comments on commit 065f2cc

Please sign in to comment.