Skip to content

Commit

Permalink
Merge contextlib.suppress() calls (apache#15029)
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr authored Mar 26, 2021
1 parent b5e7ada commit 7320037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/executors/executor_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7320037

Please sign in to comment.