浏览代码

Remove the tracestack when the collection already exists

Leo Benkel 10 月之前
父节点
当前提交
a73a9c7310
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      backend/apps/rag/main.py

+ 2 - 1
backend/apps/rag/main.py

@@ -978,10 +978,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