Browse Source

notify the user that use_mobile_ui parameter exist

Emilien Devos 2 years ago
parent
commit
0d4c066119
1 changed files with 2 additions and 0 deletions
  1. 2 0
      searx/search/processors/online.py

+ 2 - 0
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: