From 12d91c1d67aa4c05ecead7ff16041fb2b9ca366d Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Sat, 1 Apr 2017 12:00:54 +0200 Subject: [PATCH] [mod] searx doesn't crash at startup when an engine can't be loaded (see #884) --- searx/engines/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py index 5275351f1..77184a282 100644 --- 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