From ef6ec3fcb8bc0a63183a1d56558b9fe1a7fa317b Mon Sep 17 00:00:00 2001 From: Devendra Parihar <54232149+Devparihar5@users.noreply.github.com> Date: Tue, 1 Oct 2024 14:32:08 +0000 Subject: [PATCH] fix: Fix unused exception variable in FaissStore. --- application/vectorstore/faiss.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/vectorstore/faiss.py b/application/vectorstore/faiss.py index ee74b971..e6c13bcd 100644 --- a/application/vectorstore/faiss.py +++ b/application/vectorstore/faiss.py @@ -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)