修复语法错误:Python try语句格式

This commit is contained in:
2026-07-13 23:03:53 +08:00
parent c960d959ad
commit 4352b81c20
+1 -1
View File
@@ -85,7 +85,7 @@ class SearchService:
return results
# 3. 解析 JSON 提取搜索结果
try {
try:
data = json.loads(stdout)
except json.JSONDecodeError:
print(f"解析 JSON 失败: {stdout[:500]}")