SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[enh] stop searx when an engine raise an SyntaxError exception (#2177)
Alexandre Flament339738275446
diff --git a/searx/engines/__init__.py b/searx/engines/__init__.pyindex 48c02e2e7..9fcf812b0 100644--- a/searx/engines/__init__.py+++ b/searx/engines/__init__.py@@ -74,6 +74,9 @@ def load_engine(engine_data):try:engine = load_module(engine_module + '.py', engine_dir)+ except (SyntaxError, KeyboardInterrupt, SystemExit, SystemError, ImportError, RuntimeError) as e:+ logger.exception('Fatal exception in engine "{}"'.format(engine_module))+ sys.exit(1)except:logger.exception('Cannot load engine "{}"'.format(engine_module))return None