logo

searx

My custom branche(s) on searx, a meta-search engine
commit: 1435ae7e96984eabd1df43095d27f21e5a5d424a
parent: 9e79ad4bde008885af69da35893588184dcbf005
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Tue,  5 Dec 2017 20:38:32 +0100

[enh] display engine error messages

Diffstat:

Msearx/search.py5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/searx/search.py b/searx/search.py @@ -135,7 +135,10 @@ def search_one_request_safe(engine_name, query, request_params, result_container .format(engine_name, search_duration, timeout_limit, e)) requests_exception = True else: - result_container.add_unresponsive_engine((engine_name, gettext('unexpected crash'))) + result_container.add_unresponsive_engine(( + engine_name, + u'{0}: {1}'.format(gettext('unexpected crash'), e), + )) # others errors logger.exception('engine {0} : exception : {1}'.format(engine_name, e))