summaryrefslogtreecommitdiff
path: root/searx/plugins/https_rewrite.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/plugins/https_rewrite.py')
-rw-r--r--searx/plugins/https_rewrite.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/searx/plugins/https_rewrite.py b/searx/plugins/https_rewrite.py
index 3d986770e..82556017e 100644
--- a/searx/plugins/https_rewrite.py
+++ b/searx/plugins/https_rewrite.py
@@ -225,6 +225,9 @@ def https_url_rewrite(result):
def on_result(request, search, result):
+ if 'parsed_url' not in result:
+ return True
+
if result['parsed_url'].scheme == 'http':
https_url_rewrite(result)
return True