You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by mi...@apache.org on 2024/01/25 14:46:19 UTC

(superset) 02/08: fix: Catch ImportErrors for Google SDKs (#25550)

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

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

commit b45f719c2b93a7aac63b2065e64c95972225e2ea
Author: Pieter Ennes <pi...@ennes.nl>
AuthorDate: Sat Jan 20 00:00:43 2024 +0100

    fix: Catch ImportErrors for Google SDKs (#25550)
    
    (cherry picked from commit effd73f2cc5bd4afbc830ae98feca568c773e4a5)
---
 superset/db_engine_specs/bigquery.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/db_engine_specs/bigquery.py b/superset/db_engine_specs/bigquery.py
index a47a328411..73b7b18d36 100644
--- a/superset/db_engine_specs/bigquery.py
+++ b/superset/db_engine_specs/bigquery.py
@@ -52,7 +52,7 @@ try:
     from google.oauth2 import service_account
 
     dependencies_installed = True
-except ModuleNotFoundError:
+except ImportError:
     dependencies_installed = False
 
 try: