fix proxy
This commit is contained in:
@@ -195,7 +195,7 @@ class BrowserService:
|
||||
|
||||
# Если таймаут или соединение не прошло — помечаем прокси как нерабочий и меняем
|
||||
if not result.success and result.error and any(
|
||||
k in result.error for k in ("Timeout", "ERR_", "Connection", "SOCKS")
|
||||
k in result.error for k in ("Timeout", "ERR_", "Connection", "SOCKS", "NS_ERROR_", "502", "Bad Gateway")
|
||||
):
|
||||
logger.warning(f"Visit attempt {attempt + 1} bad proxy, retrying with new")
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user