diff options
| author | Cqoicebordel <Cqoicebordel@users.noreply.github.com> | 2015-01-29 00:26:12 +0100 |
|---|---|---|
| committer | Cqoicebordel <Cqoicebordel@users.noreply.github.com> | 2015-01-29 00:26:12 +0100 |
| commit | 1d255061c7422045ef912a471500513832e0319f (patch) | |
| tree | c93ce54d795e3c6be6eb41cb212873e1374cf9cf /searx/engines | |
| parent | 92368a410749a4a057b476eb10c524f0fc133a0b (diff) | |
Digg's unit test
Diffstat (limited to 'searx/engines')
| -rw-r--r-- | searx/engines/digg.py | 2 |
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']) |