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

This commit is contained in:
Alexandre Flament 2017-04-01 12:00:54 +02:00 committed by Adam Tauber
parent 92ca80ba5a
commit 12d91c1d67

View file

@ -218,4 +218,5 @@ def get_engines_stats():
def initialize_engines(engine_list): def initialize_engines(engine_list):
for engine_data in engine_list: for engine_data in engine_list:
engine = load_engine(engine_data) engine = load_engine(engine_data)
engines[engine.name] = engine if engine is not None:
engines[engine.name] = engine