Skip to content

Commit

Permalink
restore reset
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Dec 5, 2023
1 parent 92d97a1 commit b60ab1f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cacholote/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ def reset(env_file: Optional[Union[str, Tuple[str]]] = None) -> None:
def get() -> Settings:
"""Get cacholote settings."""
if _SETTINGS is None:
reset()
assert _SETTINGS is not None
raise ValueError(_CONFIG_NOT_SET_MSG)
return _SETTINGS.model_copy()


reset()

0 comments on commit b60ab1f

Please sign in to comment.