Skip to content

Commit 9b5a269

Browse files
authored
Apply suggestion from @ephraimbuddy
1 parent 1735b88 commit 9b5a269

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

airflow-core/src/airflow/exceptions.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,7 @@
2727
if TYPE_CHECKING:
2828
from airflow.models import DagRun
2929

30-
try:
31-
from airflow.sdk.exceptions import AirflowException
32-
except ModuleNotFoundError:
33-
# The shared libraries are unable to see the 'sdk' package, so redefine here
34-
class AirflowException(Exception): # type: ignore[no-redef]
35-
"""Base class for all Airflow exceptions."""
30+
from airflow.sdk.exceptions import AirflowException
3631

3732

3833
class TaskNotFound(AirflowException):

0 commit comments

Comments
 (0)