fix: 补齐审查清单里还没落地的交互和代理复测
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user