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

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

do not raise error for 429

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