diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2015-01-06 18:38:04 +0100 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2015-01-06 18:38:04 +0100 |
| commit | 3b672039aab207d0002eac9d7406f0c5b3239df0 (patch) | |
| tree | cf797fb2cac92bd8bd568131a9021a4e7bbf6b39 /searx/engines/digg.py | |
| parent | 7b531c6fcefe1c0c5cc19967454cdddb6e1c8fbd (diff) | |
| parent | 3aa3a4633f50fa50693636113a4141e266db90d7 (diff) | |
Merge pull request #167 from Cqoicebordel/minor-fixes
Minor fixes
Diffstat (limited to 'searx/engines/digg.py')
| -rw-r--r-- | searx/engines/digg.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/searx/engines/digg.py b/searx/engines/digg.py index 241234fdb..8c457d6b9 100644 --- a/searx/engines/digg.py +++ b/searx/engines/digg.py @@ -44,6 +44,9 @@ def response(resp): search_result = loads(resp.text) + if search_result['html'] == '': + return results + dom = html.fromstring(search_result['html']) # parse results |