From 224c3a1b3d883d0db6d87978ef40d6d79487ed2a Mon Sep 17 00:00:00 2001 From: Pieter Ennes Date: Sat, 20 Jan 2024 00:00:43 +0100 Subject: [PATCH] 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 f3b9c486e98e5..8e7ed0bf7d061 100644 --- a/superset/db_engine_specs/bigquery.py +++ b/superset/db_engine_specs/bigquery.py @@ -52,7 +52,7 @@ from google.oauth2 import service_account dependencies_installed = True -except ModuleNotFoundError: +except ImportError: dependencies_installed = False try: