"src/include/functional2.hpp" did not exist on "3a6044aa84e0836ddc083233b7d616c19adeb677"
Unverified Commit 7e6c5193 authored by Timothy Jaeryang Baek's avatar Timothy Jaeryang Baek Committed by GitHub
Browse files

Merge pull request #3688 from leobenkel/no-trace-when-success

fix: Remove the tracestack when the collection already exists
parents a6dd6208 a73a9c73
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment