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
[fix] #121, HTTP 500 Error if res["content"] == None
Thomas Pointhuber5a7f85eceef7
diff --git a/searx/search.py b/searx/search.pyindex f051d6df2..0e7aaed8f 100644--- a/searx/search.py+++ b/searx/search.py@@ -131,7 +131,7 @@ def score_results(results):weight = 1.0# strip multiple spaces and cariage returns from content- if 'content' in res:+ if res.get('content'):res['content'] = re.sub(' +', ' ',res['content'].strip().replace('\n', ''))