refactor: 清理后端冗余代码和未用依赖
This commit is contained in:
+1
-1
@@ -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]]):
|
||||
|
||||
Reference in New Issue
Block a user