From 2a6c1cd6337052f5ec1a68cf9f873e2d9991ab0c Mon Sep 17 00:00:00 2001 From: Yuriy Yuriev Date: Fri, 22 May 2026 00:53:36 +0700 Subject: [PATCH] fix proxy --- services/browser_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/browser_service.py b/services/browser_service.py index b6c891e..04fd622 100644 --- a/services/browser_service.py +++ b/services/browser_service.py @@ -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