fix: Fix unused exception variable in FaissStore.

This commit is contained in:
Devendra Parihar
2024-10-01 14:32:08 +00:00
parent aa7f59f88c
commit ef6ec3fcb8

View File

@@ -21,8 +21,8 @@ class FaissStore(BaseVectorStore):
self.docsearch = FAISS.from_documents(docs_init, embeddings)
else:
self.docsearch = FAISS.load_local(self.path, embeddings, allow_dangerous_deserialization=True)
except Exception as e:
raise
except Exception:
raise # Just re-raise the exception without assigning to e
self.assert_embedding_dimensions(embeddings)