Skip to content

Commit

Permalink
Restore assert
Browse files Browse the repository at this point in the history
  • Loading branch information
austintlee committed Dec 6, 2024
1 parent 5c80ea5 commit b5ee277
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def to_docs(self, query_params: "BaseDBReader.QueryParams") -> list[Document]:
}
)
doc.properties[DocumentPropertyTypes.SOURCE] = DocumentSource.DB_QUERY
# assert doc.doc_id, "Retrieved invalid doc with missing doc_id"
assert doc.doc_id, "Retrieved invalid doc with missing doc_id"
if not doc.parent_id:
# Always use retrieved doc as the unique parent doc - override any empty parent doc created below
unique_docs[doc.doc_id] = doc
Expand Down

0 comments on commit b5ee277

Please sign in to comment.