summaryrefslogtreecommitdiff
path: root/searx/engines/deviantart.py
diff options
context:
space:
mode:
authorAadniz <8147434+Aadniz@users.noreply.github.com>2025-10-26 11:32:45 +0100
committerGitHub <noreply@github.com>2025-10-26 11:32:45 +0100
commit22e1d3001794ecf89f3e3eee9844af8f48aeffc8 (patch)
treeab27236148394b270c9610318e7bf3ca0f4aeff5 /searx/engines/deviantart.py
parent4ca75a04500d932ffefb48072c63aa35670a952f (diff)
[fix] startpage engine: properly display CAPTCHA if redirect page is seen (#5380)
Fixes an issue where startpage engine would display parsing error (`json.decoder.JSONDecodeError`) when returning CAPTCHA redirect page. The fix simply checks if response header has `Location` set, and if it starts with `https://www.startpage.com/sp/captcha`, it will raise a CAPTCHA exception before trying to parse the data.
Diffstat (limited to 'searx/engines/deviantart.py')
0 files changed, 0 insertions, 0 deletions