完成 Ruff 全量清理
This commit is contained in:
+3
-4
@@ -380,10 +380,9 @@ class HuyaPasswordLogin:
|
||||
|
||||
last_exc: Exception | None = None
|
||||
for attempt in range(max_ip_retries + 1):
|
||||
if attempt > 0:
|
||||
if not self._swap_proxy():
|
||||
logger.warning("无可用代理可切换,停止换 IP 重试")
|
||||
break
|
||||
if attempt > 0 and not self._swap_proxy():
|
||||
logger.warning("无可用代理可切换,停止换 IP 重试")
|
||||
break
|
||||
try:
|
||||
return self._login_once()
|
||||
except (HuyaQrAuthRequiredError, HuyaSmsAuthRequiredError) as exc:
|
||||
|
||||
Reference in New Issue
Block a user