Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Nov 14, 2024
1 parent f569ae1 commit e3d8d26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/anemoi/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def load_any_dict_format(path) -> dict:
return tomllib.load(f)
except (json.JSONDecodeError, yaml.YAMLError, tomllib.TOMLDecodeError) as e:
LOG.warning(f"Failed to parse config file {path}", exc_info=e)
return ValueError(f"Failed to parse config file {path} [{e}]")
raise ValueError(f"Failed to parse config file {path} [{e}]")

return open(path).read()

Expand Down

0 comments on commit e3d8d26

Please sign in to comment.