Skip to content

Commit ef7dd0a

Browse files
committed
Update captcha_instrument.py
1 parent a6cda4e commit ef7dd0a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/python3_capsolver/core/captcha_instrument.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ async def _aio_url_read(url: str, **kwargs) -> bytes:
8383
async for attempt in ASYNC_RETRIES:
8484
with attempt:
8585
async with session.get(url=url, **kwargs) as resp:
86-
return await resp.content.read()
86+
if resp.status == 200:
87+
return await resp.content.read()
88+
return b""
89+
return b""
8790

8891
def file_processing(
8992
self,

0 commit comments

Comments
 (0)