fix: 修复缺失hash字段和文件的记录 抛出File not found

fix: 修复缺失hash字段和文件的记录 抛出File not found
pull/297/head
HYY 2025-03-12 23:12:00 +08:00 committed by GitHub
commit d9386317fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -356,6 +356,7 @@ class EmojiManager:
removed_count += 1 removed_count += 1
else: else:
logger.error(f"删除数据库记录失败: {emoji['_id']}") logger.error(f"删除数据库记录失败: {emoji['_id']}")
continue
if "hash" not in emoji: if "hash" not in emoji:
logger.warning(f"发现缺失记录缺少hash字段ID: {emoji.get('_id', 'unknown')}") logger.warning(f"发现缺失记录缺少hash字段ID: {emoji.get('_id', 'unknown')}")