mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-22 02:50:31 +00:00
ruff: add bugbear across packages (#31917)
WIP, other packages will get in next PRs
This commit is contained in:
@@ -479,7 +479,7 @@ class Chroma(VectorStore):
|
||||
"Try filtering complex metadata using "
|
||||
"langchain_community.vectorstores.utils.filter_complex_metadata."
|
||||
)
|
||||
raise ValueError(e.args[0] + "\n\n" + msg)
|
||||
raise ValueError(e.args[0] + "\n\n" + msg) from e
|
||||
raise e
|
||||
if empty_ids:
|
||||
images_without_metadatas = [b64_texts[j] for j in empty_ids]
|
||||
@@ -566,7 +566,7 @@ class Chroma(VectorStore):
|
||||
"Try filtering complex metadata from the document using "
|
||||
"langchain_community.vectorstores.utils.filter_complex_metadata."
|
||||
)
|
||||
raise ValueError(e.args[0] + "\n\n" + msg)
|
||||
raise ValueError(e.args[0] + "\n\n" + msg) from e
|
||||
raise e
|
||||
if empty_ids:
|
||||
texts_without_metadatas = [texts[j] for j in empty_ids]
|
||||
|
Reference in New Issue
Block a user