diff options
author | Alexandre Flament <alex@al-f.net> | 2017-04-01 12:00:54 +0200 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2017-04-08 17:38:46 +0200 |
commit | 12d91c1d67aa4c05ecead7ff16041fb2b9ca366d (patch) | |
tree | 53b9fead51a1e49e989a9c3c9ad8fc3ea07c4ba2 | |
parent | 92ca80ba5a257a8477863e941be421f386a43de7 (diff) | |
download | searxng-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__.py | 3 |
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 |