forked from zaclys/searxng
Merge pull request #1313 from unixfox/help-rate-limit-google
add "warn" message to notify the admin that use_mobile_ui parameter exist
This commit is contained in:
commit
9b0b6a2c90
|
@ -162,6 +162,8 @@ class OnlineProcessor(EngineProcessor):
|
||||||
self.handle_exception(result_container, e, suspend=True)
|
self.handle_exception(result_container, e, suspend=True)
|
||||||
self.logger.exception('CAPTCHA')
|
self.logger.exception('CAPTCHA')
|
||||||
except SearxEngineTooManyRequestsException as e:
|
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.handle_exception(result_container, e, suspend=True)
|
||||||
self.logger.exception('Too many requests')
|
self.logger.exception('Too many requests')
|
||||||
except SearxEngineAccessDeniedException as e:
|
except SearxEngineAccessDeniedException as e:
|
||||||
|
|
Loading…
Reference in New Issue