diff options
| author | Alexandre Flament <alex@al-f.net> | 2023-01-29 20:48:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-29 20:48:43 +0100 |
| commit | 9d102fb08ff4a7dc04d093561adde60436e3f69e (patch) | |
| tree | 6df4803a3f1ff0433c0f6c3344ea9133704c6f41 /searx/network/raise_for_httperror.py | |
| parent | 4f808088f146b5f2c21b219d57d7bff885d8b9c2 (diff) | |
| parent | 031162be0471650c09c25954b5251d06d8c042e1 (diff) | |
Merge pull request #2132 from dalf/update_pr_1967
search.suspended_time settings: bug fixes
Diffstat (limited to 'searx/network/raise_for_httperror.py')
| -rw-r--r-- | searx/network/raise_for_httperror.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/searx/network/raise_for_httperror.py b/searx/network/raise_for_httperror.py index 7fc2b7877..9f847d436 100644 --- a/searx/network/raise_for_httperror.py +++ b/searx/network/raise_for_httperror.py @@ -72,9 +72,7 @@ def raise_for_httperror(resp): if resp.status_code and resp.status_code >= 400: raise_for_captcha(resp) if resp.status_code in (402, 403): - raise SearxEngineAccessDeniedException( - message='HTTP error ' + str(resp.status_code), suspended_time=3600 * 24 - ) + raise SearxEngineAccessDeniedException(message='HTTP error ' + str(resp.status_code)) if resp.status_code == 429: raise SearxEngineTooManyRequestsException() resp.raise_for_status() |