Explorar el Código

update tester

Germey hace 6 años
padre
commit
db7a5c2dc6
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      proxypool/processors/tester.py

+ 3 - 2
proxypool/processors/tester.py

@@ -4,7 +4,7 @@ from loguru import logger
 from proxypool.schemas import Proxy
 from proxypool.storages.redis import RedisClient
 from proxypool.setting import TEST_TIMEOUT, TEST_BATCH, TEST_URL, TEST_VALID_STATUS
-from aiohttp import ClientProxyConnectionError, ServerDisconnectedError, ClientOSError
+from aiohttp import ClientProxyConnectionError, ServerDisconnectedError, ClientOSError, ClientHttpProxyError
 from asyncio import TimeoutError
 
 
@@ -13,7 +13,8 @@ EXCEPTIONS = (
     ConnectionRefusedError,
     TimeoutError,
     ServerDisconnectedError,
-    ClientOSError
+    ClientOSError,
+    ClientHttpProxyError
 )