summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2017-04-01 12:00:54 +0200
committerAdam Tauber <asciimoo@gmail.com>2017-04-08 17:38:46 +0200
commit12d91c1d67aa4c05ecead7ff16041fb2b9ca366d (patch)
tree53b9fead51a1e49e989a9c3c9ad8fc3ea07c4ba2
parent92ca80ba5a257a8477863e941be421f386a43de7 (diff)
downloadsearxng-12d91c1d67aa4c05ecead7ff16041fb2b9ca366d.tar.gz
searxng-12d91c1d67aa4c05ecead7ff16041fb2b9ca366d.zip
[mod] searx doesn't crash at startup when an engine can't be loaded (see #884)
-rw-r--r--searx/engines/__init__.py3
1 files changed, 2 insertions, 1 deletions
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