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] results.py: crashes when 'parsed_url' is None
Bnyro3a59aea742a5
diff --git a/searx/results.py b/searx/results.pyindex b9cb90bbb..281607de0 100644--- a/searx/results.py+++ b/searx/results.py@@ -318,8 +318,9 @@ class ResultContainer:def __find_duplicated_http_result(self, result):result_template = result.get('template')for merged_result in self._merged_results:- if 'parsed_url' not in merged_result:+ if not merged_result.get('parsed_url'):continue+if compare_urls(result['parsed_url'], merged_result['parsed_url']) and result_template == merged_result.get('template'):@@ -385,6 +386,9 @@ class ResultContainer:categoryPositions = {}for res in results:+ if not res.get('url'):+ continue+# do we need to handle more than one category per engine?engine = engines[res['engine']]res['category'] = engine.categories[0] if len(engine.categories) > 0 else ''