logo

searx

My custom branche(s) on searx, a meta-search engine
commit: 12d91c1d67aa4c05ecead7ff16041fb2b9ca366d
parent: 92ca80ba5a257a8477863e941be421f386a43de7
Author: Alexandre Flament <alex@al-f.net>
Date:   Sat,  1 Apr 2017 12:00:54 +0200

[mod] searx doesn't crash at startup when an engine can't be loaded (see #884)

Diffstat:

Msearx/engines/__init__.py3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py @@ -218,4 +218,5 @@ def get_engines_stats(): def initialize_engines(engine_list): for engine_data in engine_list: engine = load_engine(engine_data) - engines[engine.name] = engine + if engine is not None: + engines[engine.name] = engine