Skip to content

Commit f30aa15

Browse files
author
humeng
committed
fix: 格式化代码
1 parent 9ed8a0a commit f30aa15

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/plugins/mineru_official_parser.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,9 @@ def check_health(self) -> dict[str, Any]:
3939
"""检查 API 可用性和密钥有效性"""
4040
try:
4141
if not self.api_key:
42-
return {
43-
"status": "unhealthy",
44-
"message": "MINERU_API_KEY 环境变量未设置(mineru_official missing_api_key)",
45-
"details": {"error_code": "-10002"}
46-
}
42+
return {"status": "unhealthy",
43+
"message": "MINERU_API_KEY 环境变量未设置",
44+
"details": {"error_code": "-10002"}}
4745

4846
# 使用一个简单的测试请求来验证 API 密钥
4947
# 由于没有专门的 ping 接口,我们尝试创建一个测试任务的请求

0 commit comments

Comments
 (0)