From 5fd4579a2ffba4e85e778917a3b70072a926906a Mon Sep 17 00:00:00 2001 From: Magicbook1108 Date: Thu, 30 Apr 2026 18:56:43 +0800 Subject: [PATCH] Fix: sync data source empty list (#14530) ### What problem does this PR solve? Fix: sync data source empty list ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- rag/svr/sync_data_source.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/rag/svr/sync_data_source.py b/rag/svr/sync_data_source.py index 1a516c2591..5a5409f01f 100644 --- a/rag/svr/sync_data_source.py +++ b/rag/svr/sync_data_source.py @@ -261,15 +261,7 @@ class SyncBase: task["connector_id"], task["kb_id"], ) - elif file_list == []: - logging.warning( - "%s deleted-file sync skipped because the snapshot was empty " - "(connector_id=%s, kb_id=%s)", - self.SOURCE_NAME, - task["connector_id"], - task["kb_id"], - ) - elif file_list is not None: + elif file_list: logging.info( "[%s] Starting stale document reconciliation. Snapshot size: %d " "(connector_id=%s, kb_id=%s)",