diff --git a/backend/apps/rag/main.py b/backend/apps/rag/main.py index 24b4a7453..c0f8a09ed 100644 --- a/backend/apps/rag/main.py +++ b/backend/apps/rag/main.py @@ -1004,10 +1004,11 @@ def store_docs_in_vector_db(docs, collection_name, overwrite: bool = False) -> b return True except Exception as e: - log.exception(e) if e.__class__.__name__ == "UniqueConstraintError": return True + log.exception(e) + return False