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:53:12 UTC

(superset) 02/10: 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.1
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 224c3a1b3d883d0db6d87978ef40d6d79487ed2a
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 f3b9c486e9..8e7ed0bf7d 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: