Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankrb committed Jul 4, 2024
1 parent 7c3d07a commit a2d6082
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/anemoi/registry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
def config():
from anemoi.utils.config import load_config

config = load_config(secrets=["api_token"]).get("registry")
config = load_config(secrets=["api_token"])
raise ValueError("Anemoi config is required.")

config = config.get("registry")
if not config:
raise ValueError("Section 'registry' is missing in config.")
return config

0 comments on commit a2d6082

Please sign in to comment.