Merge pull request #2132 from dalf/update_pr_1967
search.suspended_time settings: bug fixes
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user