fix: key error in frontend on disallowed GSheets (#32792)

This commit is contained in:
Chris
2025-03-24 23:19:59 +01:00
committed by GitHub
parent 6b96b37c38
commit 6f69c84d10

View File

@@ -319,7 +319,10 @@ def cached_common_bootstrap_data( # pylint: disable=unused-argument
# verify client has google sheets installed
available_specs = get_available_engine_specs()
frontend_config["HAS_GSHEETS_INSTALLED"] = bool(available_specs[GSheetsEngineSpec])
frontend_config["HAS_GSHEETS_INSTALLED"] = (
GSheetsEngineSpec in available_specs
and bool(available_specs[GSheetsEngineSpec])
)
language = locale.language if locale else "en"