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
print error if https rewrite directory is not found, #116
Thomas Pointhuber6ecf03c736bf
diff --git a/searx/https_rewrite.py b/searx/https_rewrite.pyindex b2731ae28..9faf3599d 100644--- a/searx/https_rewrite.py+++ b/searx/https_rewrite.py@@ -18,7 +18,7 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.import refrom lxml import etreefrom os import listdir-from os.path import isfile, join+from os.path import isfile, isdir, join# https://gitweb.torproject.org/\@@ -120,9 +120,10 @@ def load_single_https_ruleset(filepath):# load all https rewrite rulesdef load_https_rules(rules_path):- # add / to path if not set yet- if rules_path[-1:] != '/':- rules_path += '/'+ # check if directory exists+ if not isdir(rules_path):+ print("[E] directory not found: '" + rules_path + "'")+ return# search all xml files which are stored in the https rule directoryxml_files = [join(rules_path, f)