searxng/searx/engines
Markus Heiser 4845183128 [mod] don't dump traceback of SearxEngineResponseException on init
When initing engines a "SearxEngineResponseException" is logged very verbose,
including full traceback information:

    ERROR:searx.engines:yggtorrent engine: Fail to initialize
    Traceback (most recent call last):
      File "share/searx/searx/engines/__init__.py", line 293, in engine_init
        init_fn(get_engine_from_settings(engine_name))
      File "share/searx/searx/engines/yggtorrent.py", line 42, in init
        resp = http_get(url, allow_redirects=False)
      File "share/searx/searx/poolrequests.py", line 197, in get
        return request('get', url, **kwargs)
      File "share/searx/searx/poolrequests.py", line 190, in request
        raise_for_httperror(response)
      File "share/searx/searx/raise_for_httperror.py", line 60, in raise_for_httperror
        raise_for_captcha(resp)
      File "share/searx/searx/raise_for_httperror.py", line 43, in raise_for_captcha
        raise_for_cloudflare_captcha(resp)
      File "share/searx/searx/raise_for_httperror.py", line 30, in raise_for_cloudflare_captcha
        raise SearxEngineCaptchaException(message='Cloudflare CAPTCHA', suspended_time=3600 * 24 * 15)
    searx.exceptions.SearxEngineCaptchaException: Cloudflare CAPTCHA, suspended_time=1296000

For SearxEngineResponseException this is not needed.  Those types of exceptions
can be a normal use case.  E.g. for CAPTCHA errors like shown in the example
above. It should be enough to log a warning for such issues:

    WARNING:searx.engines:yggtorrent engine: Fail to initialize // Cloudflare CAPTCHA, suspended_time=1296000

closes: #2612

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-03-05 17:26:22 +01:00
..
1337x.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
__init__.py [mod] don't dump traceback of SearxEngineResponseException on init 2021-03-05 17:26:22 +01:00
acgsou.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
ahmia.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
apkmirror.py [fix) fix apk_mirror engine 2021-02-09 11:02:12 +01:00
archlinux.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
arxiv.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
base.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
bing.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
bing_images.py Fix paging of Bing Images 2021-02-22 21:19:34 +01:00
bing_news.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
bing_videos.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
btdigg.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
ccengine.py Add Creative Commons search engine 2021-02-04 11:31:35 +01:00
command.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
currency_convert.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
dailymotion.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
deezer.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
deviantart.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
dictzone.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
digbt.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
digg.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
doku.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
duckduckgo.py [fix] duckduckgo engine: "!ddg !g" do not redirect to google 2021-02-12 11:10:08 +01:00
duckduckgo_definitions.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
duckduckgo_images.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
duden.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
dummy-offline.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
dummy.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
ebay.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
elasticsearch.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
etools.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
fdroid.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
flickr.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
flickr_noapi.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
framalibre.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
freesound.py Add Freesound engine (#2596) 2021-03-01 08:52:36 +01:00
frinkiac.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
genius.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
gentoo.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
gigablast.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
github.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
google.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
google_images.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
google_news.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
google_scholar.py [enh] google scholar - python implementation of the engine 2021-03-01 15:16:37 +01:00
google_videos.py [fix] normalize the language & region aspects of all google engines 2021-01-28 10:08:46 +01:00
ina.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
invidious.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
json_engine.py [mod] json_engine: add content_html_to_text and title_html_to_text 2021-02-10 16:42:11 +01:00
kickass.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
loc.py Add Library of Congress engine 2021-02-09 12:45:39 +01:00
mediathekviewweb.py [enh] add engine MediathekViewWeb (API) 2021-02-09 13:08:01 +01:00
mediawiki.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
microsoft_academic.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
mixcloud.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
not_evil.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
nyaa.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
opensemantic.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
openstreetmap.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
pdbe.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
peertube.py Improve peertube searching 2021-02-13 19:47:33 +01:00
photon.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
piratebay.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
pubmed.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
qwant.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
recoll.py [feat] recoll: paged json support 2021-02-07 10:05:35 -03:00
reddit.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
rumble.py Added rumble.com video search engine. TODO video embedding. 2021-02-20 12:48:56 +00:00
scanr_structures.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
searchcode_code.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
searx_engine.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
sepiasearch.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
seznam.py [fix] fix seznam engine 2021-02-11 12:53:19 +01:00
soundcloud.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
spotify.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
stackoverflow.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
startpage.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
tokyotoshokan.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
torrentz.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
translated.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
unsplash.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
vimeo.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
wikidata.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
wikipedia.py remove articles number from engines_languages.json 2021-02-25 23:54:21 -07:00
wolframalpha_api.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
wolframalpha_noapi.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
www1x.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
xpath.py [enh] engines: add about variable 2021-01-14 20:57:17 +01:00
yacy.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
yahoo.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
yahoo_news.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
yggtorrent.py fix yggtorrent url + add it back 2021-02-15 13:38:34 +01:00
youtube_api.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00
youtube_noapi.py [mod] dynamically set language_support variable 2021-02-01 17:10:37 +01:00