From 57dbaf00a89c7cd4aa8924444c9fcfddd614507f Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Mon, 20 Apr 2026 11:30:37 +0800 Subject: [PATCH] fix(python): dedupe language support notes on py310 --- python/python/lancedb/table.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/python/python/lancedb/table.py b/python/python/lancedb/table.py index 7600011e7..3b8f4307b 100644 --- a/python/python/lancedb/table.py +++ b/python/python/lancedb/table.py @@ -98,7 +98,12 @@ _MODEL_BACKED_TOKENIZER_ERRORS = ( def _add_unique_note(exception: BaseException, note: str) -> None: existing_notes = getattr(exception, "__notes__", ()) or () - if note not in existing_notes: + message = ( + exception.args[0] + if exception.args and isinstance(exception.args[0], str) + else "" + ) + if note not in existing_notes and note not in message: add_note(exception, note)