fix: resolve basedpyright-check.

This commit is contained in:
FFXN
2026-01-28 13:26:40 +08:00
parent 5f71fd42bf
commit 5f611ad2ba
6 changed files with 18 additions and 15 deletions

View File

@ -94,7 +94,7 @@ def generate_summary_index_task(dataset_id: str, document_id: str, segment_ids:
)
)
except Exception:
except Exception as e:
logger.exception("Failed to generate summary index for document %s", document_id)
# Update document segments with error status if needed
if segment_ids:

View File

@ -245,6 +245,7 @@ def regenerate_summary_index_task(
)
for segment in segments:
summary_record = None
try:
# Get existing summary record
summary_record = (