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 a2d6082 commit c52339b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/anemoi/registry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ def config():
from anemoi.utils.config import load_config

config = load_config(secrets=["api_token"])
raise ValueError("Anemoi config is required.")
if not config:
raise ValueError("Anemoi config is required.")

config = config.get("registry")
if not config:
Expand Down

0 comments on commit c52339b

Please sign in to comment.