fix: use getattr in use_catalog_mfe

This commit is contained in:
Serhii Nanai
2025-09-29 15:03:41 +03:00
parent e2d50f5b4d
commit 13f450ff29

View File

@@ -11,5 +11,5 @@ def use_catalog_mfe():
Returns a boolean = true if the Catalog MFE is enabled.
"""
return configuration_helpers.get_value(
'ENABLE_CATALOG_MICROFRONTEND', settings.ENABLE_CATALOG_MICROFRONTEND
'ENABLE_CATALOG_MICROFRONTEND', getattr(settings, 'ENABLE_CATALOG_MICROFRONTEND', False)
)