logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git
commit: 4450ed5503ab9f7b4d0dc1849837523bbe3b56dd
parent 7b531c6fcefe1c0c5cc19967454cdddb6e1c8fbd
Author: Cqoicebordel <Cqoicebordel@users.noreply.github.com>
Date:   Sat,  3 Jan 2015 23:54:02 +0100

Digg correction
Return no result instead of crashing if no result

Diffstat:

Msearx/engines/digg.py3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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