diff --git a/cacholote/config.py b/cacholote/config.py index 19928a0..ec91ad5 100644 --- a/cacholote/config.py +++ b/cacholote/config.py @@ -215,6 +215,5 @@ def get() -> Settings: """Get cacholote settings.""" if _SETTINGS is None: reset() - if _SETTINGS is None: - raise RuntimeError("reset() did not work properly") + assert _SETTINGS is not None, "reset() did not work properly" return _SETTINGS.model_copy()