diff --git a/core/utils/__init__.py b/core/utils/__init__.py index 8357c26d..596b0f55 100644 --- a/core/utils/__init__.py +++ b/core/utils/__init__.py @@ -139,10 +139,12 @@ def get_project_parameters() -> Any: configuration source, formats their keys to lowercase, and then stores them in the cache for a limited period. """ - parameters = cache.get("parameters") + parameters = cache.get("parameters", {}) if not parameters: for key in EXPOSABLE_KEYS: + if not getattr(config, key): + continue parameters[key.lower()] = getattr(config, key) cache.set("parameters", parameters, 60 * 60)