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
6 changes: 3 additions & 3 deletions airflow/providers/microsoft/azure/hooks/azure_cosmos.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from typing import Any, Dict, Optional

from azure.cosmos.cosmos_client import CosmosClient
from azure.cosmos.errors import HTTPFailure
from azure.cosmos.exceptions import CosmosHttpResponseError

from airflow.exceptions import AirflowBadRequest
from airflow.hooks.base import BaseHook
Expand Down Expand Up @@ -307,7 +307,7 @@ def get_document(
document_id,
)
)
except HTTPFailure:
except CosmosHttpResponseError:
return None

def get_documents(
Expand All @@ -334,7 +334,7 @@ def get_documents(
)

return list(result_iterable)
except HTTPFailure:
except CosmosHttpResponseError:
return None


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def write_version(filename: str = os.path.join(*[my_dir, "airflow", "git_version
]
azure = [
'azure-batch>=8.0.0',
'azure-cosmos>=3.0.1,<4',
'azure-cosmos>=4.0.0,<5',
'azure-datalake-store>=0.0.45',
'azure-identity>=1.3.1',
'azure-keyvault>=4.1.0',
Expand Down