From 10f5c8d091b6edfa843e3f1b3b8c2610bf9edba7 Mon Sep 17 00:00:00 2001 From: jyong <718720800@qq.com> Date: Wed, 25 Dec 2024 19:46:57 +0800 Subject: [PATCH] fix merge --- api/tasks/disable_segments_from_index_task.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/tasks/disable_segments_from_index_task.py b/api/tasks/disable_segments_from_index_task.py index 40d365be660116..97eb9a40e71834 100644 --- a/api/tasks/disable_segments_from_index_task.py +++ b/api/tasks/disable_segments_from_index_task.py @@ -56,8 +56,7 @@ def disable_segments_from_index_task(segment_ids: list, dataset_id: str, documen end_at = time.perf_counter() logging.info(click.style("Segments removed from index latency: {}".format(end_at - start_at), fg="green")) - except Exception as e: - logging.exception("remove segments from index failed:{}".format(e)) + except Exception: # update segment error msg db.session.query(DocumentSegment).filter( DocumentSegment.id.in_(segment_ids),