Skip to content

Commit

Permalink
Raise original import error in CLI vending of executors (#32931)
Browse files Browse the repository at this point in the history
Small follow-up after #29055 - for better diagnostic of potential
future problems, it would be good to re-raise the original import
error, otherwise if the Import error results from some other issue
than Airflow version, we will get quite a bit of head scratching
trying to diagnose some of the resulting aftermath.
  • Loading branch information
potiuk committed Jul 29, 2023
1 parent 81b85eb commit f31af91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions airflow/providers/celery/executors/celery_executor.py
Expand Up @@ -68,6 +68,8 @@
f"available in the 'airflow.executors' package. You should not use "
f"the provider's executors in this version of Airflow."
)
raise

from airflow.configuration import conf
from airflow.exceptions import AirflowTaskTimeout
from airflow.executors.base_executor import BaseExecutor
Expand Down
Expand Up @@ -69,6 +69,7 @@
f"available in the 'airflow.executors' package. You should not use "
f"the provider's executors in this version of Airflow."
)
raise
from airflow.configuration import conf
from airflow.executors.base_executor import BaseExecutor
from airflow.providers.cncf.kubernetes.executors.kubernetes_executor_types import POD_EXECUTOR_DONE_KEY
Expand Down

0 comments on commit f31af91

Please sign in to comment.