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

Commit 11d6cbe9 authored by Nivesh Krishna's avatar Nivesh Krishna
Browse files

Fix google ban

parent 45afe9f9
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -61,6 +61,8 @@ 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)
        # No need to ban the engine for 1 hour because of IP rotation
        if resp.status_code == 429:
            raise SearxEngineTooManyRequestsException()
            return
            # raise SearxEngineTooManyRequestsException()
        resp.raise_for_status()