fix(collect): handle login target close race
Tests / Python 3.11 / Windows (push) Has been cancelled

This commit is contained in:
chengma
2026-07-14 12:08:12 +08:00
parent cbfd36af56
commit f99cde8e05
11 changed files with 588 additions and 88 deletions
+4
View File
@@ -327,6 +327,10 @@ def login_status_text(status) -> str:
return "未登录"
if reason == "NO_SESSION_COOKIE":
return "未登录"
if reason == "LOGIN_CHECK_TARGET_UNAVAILABLE" or str(reason).startswith(
"LOGIN_CHECK_FAILED"
):
return "登录状态暂不可确认"
if reason:
return f"未登录({reason})"
return "未登录"