summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--searx/plugins/limiter.py2
-rw-r--r--searx/search/processors/online.py5
2 files changed, 5 insertions, 2 deletions
diff --git a/searx/plugins/limiter.py b/searx/plugins/limiter.py
index bdaeeea69..c9aa36265 100644
--- a/searx/plugins/limiter.py
+++ b/searx/plugins/limiter.py
@@ -85,7 +85,7 @@ def is_accepted_request() -> bool:
def pre_request():
if not is_accepted_request():
- return '', 429
+ return 'Too Many Requests', 429
return None
diff --git a/searx/search/processors/online.py b/searx/search/processors/online.py
index f8fbcf40c..0cfe6e123 100644
--- a/searx/search/processors/online.py
+++ b/searx/search/processors/online.py
@@ -163,7 +163,10 @@ class OnlineProcessor(EngineProcessor):
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.logger.warn(
+ "Set to 'true' the use_mobile_ui parameter in the 'engines:'"
+ " section of your settings.yml file if google is blocked for you."
+ )
self.handle_exception(result_container, e, suspend=True)
self.logger.exception('Too many requests')
except SearxEngineAccessDeniedException as e: