Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9e4443e authored by Nivesh Krishna's avatar Nivesh Krishna
Browse files

do not ban engines

parent 45afe9f9
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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()