Loading searx/network/raise_for_httperror.py +3 −2 Original line number Diff line number Diff line Loading @@ -61,6 +61,7 @@ def raise_for_httperror(resp): if resp.status_code in (402, 403): raise SearxEngineAccessDeniedException(message='HTTP error ' + str(resp.status_code), suspended_time=3600 * 24) if resp.status_code == 429: raise SearxEngineTooManyRequestsException() # No need to ban the engine for 1 hour because of IP rotation # if resp.status_code == 429: # raise SearxEngineTooManyRequestsException() resp.raise_for_status() Loading
searx/network/raise_for_httperror.py +3 −2 Original line number Diff line number Diff line Loading @@ -61,6 +61,7 @@ def raise_for_httperror(resp): if resp.status_code in (402, 403): raise SearxEngineAccessDeniedException(message='HTTP error ' + str(resp.status_code), suspended_time=3600 * 24) if resp.status_code == 429: raise SearxEngineTooManyRequestsException() # No need to ban the engine for 1 hour because of IP rotation # if resp.status_code == 429: # raise SearxEngineTooManyRequestsException() resp.raise_for_status()