mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-12 20:15:26 +00:00
fix: Fix unused exception variable in FaissStore.
This commit is contained in:
1 parent
aa7f59f88c
commit
ef6ec3fcb8
1 file changed
+2
-2
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user