logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git
commit: 5a7f85eceef70dca1aef4f3899c5f9ab4975df22
parent 58cc03351a10668da8aedd355d8b7da33057855a
Author: Thomas Pointhuber <thomas.pointhuber@gmx.at>
Date:   Sat,  1 Nov 2014 17:32:26 +0100

[fix] #121, HTTP 500 Error if res["content"] == None

Diffstat:

Msearx/search.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/searx/search.py b/searx/search.py @@ -131,7 +131,7 @@ def score_results(results): weight = 1.0 # strip multiple spaces and cariage returns from content - if 'content' in res: + if res.get('content'): res['content'] = re.sub(' +', ' ', res['content'].strip().replace('\n', ''))