Merge pull request #2132 from dalf/update_pr_1967

search.suspended_time settings: bug fixes
This commit is contained in:
Alexandre Flament 2023-01-29 20:48:43 +01:00 committed by GitHub
commit 9d102fb08f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 63 additions and 30 deletions

View file

@ -62,8 +62,7 @@ sc_code = ''
def raise_captcha(resp):
if str(resp.url).startswith('https://www.startpage.com/sp/captcha'):
# suspend CAPTCHA for 7 days
raise SearxEngineCaptchaException(suspended_time=7 * 24 * 3600)
raise SearxEngineCaptchaException()
def get_sc_code(headers):