Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnJyong committed Dec 25, 2024
1 parent 148b0b4 commit 10f5c8d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/tasks/disable_segments_from_index_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 10f5c8d

Please sign in to comment.