From 0d4c066119895f2c68b5de68db9cc79fea0ba221 Mon Sep 17 00:00:00 2001 From: Emilien Devos Date: Sat, 11 Jun 2022 17:20:56 +0200 Subject: [PATCH] notify the user that use_mobile_ui parameter exist --- searx/search/processors/online.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/searx/search/processors/online.py b/searx/search/processors/online.py index 8d8275df1..f8fbcf40c 100644 --- a/searx/search/processors/online.py +++ b/searx/search/processors/online.py @@ -162,6 +162,8 @@ class OnlineProcessor(EngineProcessor): self.handle_exception(result_container, e, suspend=True) self.logger.exception('CAPTCHA') except SearxEngineTooManyRequestsException as e: + if "google" in self.engine_name: + self.logger.warn("We recommend enabling the use_mobile_ui parameter if google is blocked for you.") self.handle_exception(result_container, e, suspend=True) self.logger.exception('Too many requests') except SearxEngineAccessDeniedException as e: