Fix linting

This commit is contained in:
yangdx 2025-08-14 13:03:23 +08:00
parent 772f981e7e
commit 3bba5fc506
2 changed files with 7 additions and 5 deletions

View file

@ -1058,7 +1058,9 @@ async def run_scanning_process(
logger.info(f"Scanning process completed: {total_files} files Processed.")
else:
# No new files to index, check if there are any documents in the queue
logger.info("No upload file found, check if there are any documents in the queue...")
logger.info(
"No upload file found, check if there are any documents in the queue..."
)
await rag.apipeline_process_enqueue_documents()
except Exception as e:

View file

@ -1131,7 +1131,9 @@ class LightRAG:
# Delete inconsistent document entries one by one
if inconsistent_docs:
async with pipeline_status_lock:
summary_message = f"Inconsistent document entries found: {len(inconsistent_docs)}"
summary_message = (
f"Inconsistent document entries found: {len(inconsistent_docs)}"
)
logger.info(summary_message)
pipeline_status["latest_message"] = summary_message
pipeline_status["history_messages"].append(summary_message)
@ -1159,9 +1161,7 @@ class LightRAG:
except Exception as e:
# Log deletion failure
async with pipeline_status_lock:
error_message = (
f"Failed to delete entry: {doc_id} - {str(e)}"
)
error_message = f"Failed to delete entry: {doc_id} - {str(e)}"
logger.error(error_message)
pipeline_status["latest_message"] = error_message
pipeline_status["history_messages"].append(error_message)