refactor: 清理后端冗余代码和未用依赖

This commit is contained in:
2026-05-19 15:46:31 +08:00
parent d30dd0da25
commit 3240027d48
11 changed files with 32 additions and 111 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ class HistoryManager:
"""加载历史记录"""
try:
return json.loads(HISTORY_FILE.read_text(encoding='utf-8'))
except:
except (OSError, json.JSONDecodeError):
return []
def _save(self, records: List[Dict[str, Any]]):