From 73200379f03328b6ebccc21ee39bf96b4896bbdc Mon Sep 17 00:00:00 2001 From: Tzu-ping Chung Date: Sat, 27 Mar 2021 00:49:26 +0800 Subject: [PATCH] Merge contextlib.suppress() calls (#15029) --- airflow/executors/executor_loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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