fix: 补齐审查清单里还没落地的交互和代理复测

This commit is contained in:
2026-11-16 16:17:31 +08:00
parent 58b3dedb2a
commit 50a8ae2e27
19 changed files with 444 additions and 192 deletions
+2 -2
View File
@@ -181,14 +181,14 @@ def _client(factory, employee_id: str, password: str, account: Account | None =
def _switch_proxy(account: Account | None, client, exc: BaseException) -> bool:
from euniv.proxy import is_proxy_failure, uses_pool
from euniv.proxy_pool import mark_failed
from euniv.proxy_pool import retire_if_dead
if account is None or not uses_pool(account):
return False
proxy = getattr(client, "proxy", None)
if not proxy or not is_proxy_failure(exc):
return False
mark_failed(account.employee_id, proxy, str(exc)[:200])
retire_if_dead(account.employee_id, proxy, str(exc)[:200])
return True