Skip to content

Commit 2239247

Browse files
authored
Merge pull request #66 from my-dev-app/fix/timeouterror
ADD: Catch Timeout error
2 parents afa257a + 98931bc commit 2239247

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

aproxyrelay/req.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
ServerTimeoutError, \
1919
InvalidURL
2020
from aiosocks2.errors import SocksError
21-
from asyncio import gather
21+
from asyncio import gather, TimeoutError
2222
from json import dumps
2323

2424
from .scrapers import proxy_list
@@ -195,5 +195,6 @@ async def _obtain_targets(self, proxy_url, target, session) -> None:
195195
ServerTimeoutError,
196196
InvalidURL,
197197
SocksError,
198+
TimeoutError,
198199
):
199200
self._queue_target_process.put(target)

0 commit comments

Comments
 (0)