Skip to content

Commit d88ca87

Browse files
authored
Fix azure ai search error handling (#281)
* fix error handling for azure ai search * bump
1 parent 507372c commit d88ca87

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.3.6
2+
3+
### Fixes
4+
5+
* **Fix Azure AI Search Error handling**
6+
17
## 0.3.5
28

39
### Enhancements

unstructured_ingest/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.3.5" # pragma: no cover
1+
__version__ = "0.3.6" # pragma: no cover

unstructured_ingest/v2/processes/connectors/azure_ai_search.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,7 @@ def write_dict(self, elements_dict: list[dict[str, Any]]) -> None:
233233
raise WriteError(
234234
", ".join(
235235
[
236-
f"{error.azure_ai_search_key}: "
237-
f"[{error.status_code}] {error.error_message}"
236+
f"{error.key}: " f"[{error.status_code}] {error.error_message}"
238237
for error in errors
239238
],
240239
),

0 commit comments

Comments
 (0)