diff --git a/airflow/executors/executor_loader.py b/airflow/executors/executor_loader.py index a6d80b8a3e7c4..676bf3582c98a 100644 --- a/airflow/executors/executor_loader.py +++ b/airflow/executors/executor_loader.py @@ -88,7 +88,7 @@ def load_executor(cls, executor_name: str) -> BaseExecutor: "executor from a plugin", executor_name, ) - with suppress(ImportError), suppress(AttributeError): + with suppress(ImportError, AttributeError): # Load plugins here for executors as at that time the plugins might not have been # initialized yet from airflow import plugins_manager