summaryrefslogtreecommitdiff
path: root/searx/engines/digg.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/digg.py')
-rw-r--r--searx/engines/digg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/digg.py b/searx/engines/digg.py
index 8c457d6b9..1b5f2c8e4 100644
--- a/searx/engines/digg.py
+++ b/searx/engines/digg.py
@@ -44,7 +44,7 @@ def response(resp):
search_result = loads(resp.text)
- if search_result['html'] == '':
+ if 'html' not in search_result or search_result['html'] == '':
return results
dom = html.fromstring(search_result['html'])