summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2022-06-12 17:07:13 +0200
committerGitHub <noreply@github.com>2022-06-12 17:07:13 +0200
commit9b0b6a2c90fa87a83bdff3ec646bbf200797c642 (patch)
tree04f3e5342206e3e085a26fe635aa7e8e90ae0b75 /searx
parent1bc5455db138ec8effc5db7a483c5badfb5e5dc9 (diff)
parent0d4c066119895f2c68b5de68db9cc79fea0ba221 (diff)
downloadsearxng-9b0b6a2c90fa87a83bdff3ec646bbf200797c642.tar.gz
searxng-9b0b6a2c90fa87a83bdff3ec646bbf200797c642.zip
Merge pull request #1313 from unixfox/help-rate-limit-google
add "warn" message to notify the admin that use_mobile_ui parameter exist
Diffstat (limited to 'searx')
-rw-r--r--searx/search/processors/online.py2
1 files changed, 2 insertions, 0 deletions
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: