fix email wrong -1 to process all file

This commit is contained in:
yichuan520030910320
2025-08-03 22:27:04 -07:00
parent 568cf597f4
commit 87c930d705
7 changed files with 73 additions and 25 deletions

View File

@@ -107,6 +107,10 @@ class WeChatRAG(BaseRAGExample):
success = self._export_wechat_data(export_path)
if not success:
print("Failed to export WeChat data")
# add red: you may nned to restart your wechat to make the database file available
print(
"\033[91mYou may need to restart/quit your WeChat to make the database file available\033[0m"
)
return []
else:
print(f"Using existing WeChat export: {export_path}")