This is an automated email from the ASF dual-hosted git repository.

michaelsmolina pushed a commit to branch 5.0
in repository https://gitbox.apache.org/repos/asf/superset.git

commit c070d9e8e179784242c8a33c9860c38e5a453325
Author: Chris <[email protected]>
AuthorDate: Mon Mar 24 23:19:59 2025 +0100

    fix: key error in frontend on disallowed GSheets (#32792)
    
    (cherry picked from commit 6f69c84d10c3bf9f4bfa20ae876d1dfb7cc695e3)
---
 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 bc1b572089..a00c91338f 100644
--- a/superset/views/base.py
+++ b/superset/views/base.py
@@ -318,7 +318,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"
 

Reply via email to