This is an automated email from the ASF dual-hosted git repository.
maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 6f69c84d10 fix: key error in frontend on disallowed GSheets (#32792)
6f69c84d10 is described below
commit 6f69c84d10c3bf9f4bfa20ae876d1dfb7cc695e3
Author: Chris <[email protected]>
AuthorDate: Mon Mar 24 23:19:59 2025 +0100
fix: key error in frontend on disallowed GSheets (#32792)
---
superset/views/base.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/superset/views/base.py b/superset/views/base.py
index fe4ec0e0ab..5b7ef99b02 100644
--- a/superset/views/base.py
+++ b/superset/views/base.py
@@ -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"