Skip to content

Commit

Permalink
bugfix raise error for config issue (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult authored Nov 15, 2024
1 parent 6c7bb41 commit b6e35c4
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 b6e35c4

Please sign in to comment.