mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/jxxghp/MoviePilot.git
synced 2026-09-20 08:03:34 +08:00
fix(agent): satisfy diagnostics script lint
This commit is contained in:
@@ -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,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user