Skip to content

Commit

Permalink
Comment why
Browse files Browse the repository at this point in the history
  • Loading branch information
silvanocerza committed Mar 18, 2024
1 parent 98839da commit 3dc0bdc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ def write_documents(self, documents: List[Document], policy: DuplicatePolicy = D
duplicate_errors_ids = []
other_errors = []
for e in errors:
# OpenSearch might not return a correctly formatted error, in that case we
# treat it as a generic error
if "create" not in e:
other_errors.append(e)
continue
Expand Down

0 comments on commit 3dc0bdc

Please sign in to comment.