Skip to content

Commit fe9b72c

Browse files
committed
refactor(adult/sp.py): add error message for status 403 in superporn.py module
1 parent 7d430ed commit fe9b72c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

user_scanner/email_scan/adult/superporn.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ async def _check(email: str) -> Result:
2020
try:
2121
async with httpx.AsyncClient(timeout=4.0) as client:
2222
response = await client.post(url, data=payload, headers=headers)
23+
24+
if response.status_code == 403:
25+
return Result.error("Status: [403] IP blocked try using proxy or VPN")
26+
2327
data = response.json()
2428

2529
is_error = data.get("error")

0 commit comments

Comments
 (0)