Commit a73a9c73 authored by Leo Benkel's avatar Leo Benkel
Browse files

Remove the tracestack when the collection already exists

parent 824966ad
...@@ -978,10 +978,11 @@ def store_docs_in_vector_db(docs, collection_name, overwrite: bool = False) -> b ...@@ -978,10 +978,11 @@ def store_docs_in_vector_db(docs, collection_name, overwrite: bool = False) -> b
return True return True
except Exception as e: except Exception as e:
log.exception(e)
if e.__class__.__name__ == "UniqueConstraintError": if e.__class__.__name__ == "UniqueConstraintError":
return True return True
log.exception(e)
return False 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