Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion generated/known_airflow_exceptions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,6 @@ providers/microsoft/azure/src/airflow/providers/microsoft/azure/operators/synaps
providers/microsoft/azure/src/airflow/providers/microsoft/azure/sensors/data_factory.py::1
providers/microsoft/azure/src/airflow/providers/microsoft/azure/sensors/msgraph.py::1
providers/microsoft/azure/src/airflow/providers/microsoft/azure/sensors/wasb.py::4
providers/microsoft/azure/src/airflow/providers/microsoft/azure/transfers/local_to_adls.py::1
providers/microsoft/azure/src/airflow/providers/microsoft/azure/transfers/sftp_to_wasb.py::1
providers/microsoft/azure/tests/unit/microsoft/azure/hooks/test_asb.py::3
providers/microsoft/azure/tests/unit/microsoft/azure/operators/test_asb.py::3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from collections.abc import Sequence
from typing import TYPE_CHECKING, Any

from airflow.providers.common.compat.sdk import AirflowException, BaseOperator
from airflow.providers.common.compat.sdk import BaseOperator
from airflow.providers.microsoft.azure.hooks.data_lake import AzureDataLakeHook

if TYPE_CHECKING:
Expand Down Expand Up @@ -82,7 +82,7 @@ def __init__(

def execute(self, context: Context) -> None:
if "**" in self.local_path:
raise AirflowException("Recursive glob patterns using `**` are not supported")
raise ValueError("Recursive glob patterns using `**` are not supported")
if not self.extra_upload_options:
self.extra_upload_options = {}
hook = AzureDataLakeHook(azure_data_lake_conn_id=self.azure_data_lake_conn_id)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

import pytest

from airflow.providers.common.compat.sdk import AirflowException
from airflow.providers.microsoft.azure.transfers.local_to_adls import LocalFilesystemToADLSOperator

TASK_ID = "test-adls-upload-operator"
Expand Down Expand Up @@ -51,7 +50,7 @@ def test_execute_raises_for_bad_glob_val(self, mock_hook):
operator = LocalFilesystemToADLSOperator(
task_id=TASK_ID, local_path=BAD_LOCAL_PATH, remote_path=REMOTE_PATH
)
with pytest.raises(AirflowException) as ctx:
with pytest.raises(ValueError, match="Recursive glob patterns using") as ctx:
operator.execute(None)
assert str(ctx.value) == "Recursive glob patterns using `**` are not supported"

Expand Down