fix(agent): satisfy diagnostics script lint

This commit is contained in:
jxxghp
2026-09-16 18:27:42 +08:00
parent 3eb339b8e0
commit 7474062a3e

View File

@@ -131,6 +131,7 @@ def collect_doctor_report() -> dict:
if moviepilot_bin: if moviepilot_bin:
commands.append([moviepilot_bin, "doctor", "--json"]) commands.append([moviepilot_bin, "doctor", "--json"])
commands.append([sys.executable, "-m", "app.cli", "doctor", "--json"]) commands.append([sys.executable, "-m", "app.cli", "doctor", "--json"])
last_error = "doctor 命令不可用"
for command in commands: for command in commands:
try: try:
@@ -167,7 +168,7 @@ def collect_doctor_report() -> dict:
return { return {
"success": False, "success": False,
"error": last_error if "last_error" in locals() else "doctor 命令不可用", "error": last_error,
} }