mirror of
https://github.com/searxng/searxng.git
synced 2024-11-23 11:21:00 +00:00
[mod] searx doesn't crash at startup when an engine can't be loaded (see #884)
This commit is contained in:
parent
92ca80ba5a
commit
12d91c1d67
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
|
if engine is not None:
|
||||||
engines[engine.name] = engine
|
engines[engine.name] = engine
|
||||||
|
|
Loading…
Reference in a new issue