diff options
Diffstat (limited to 'searx/engines/startpage.py')
-rw-r--r-- | searx/engines/startpage.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/startpage.py b/searx/engines/startpage.py index fcfc21160..cbafe0976 100644 --- a/searx/engines/startpage.py +++ b/searx/engines/startpage.py @@ -35,7 +35,7 @@ def response(resp): title = link.text_content() content = '' - if len(result.xpath('./p[@class="desc"]')): + if result.xpath('./p[@class="desc"]'): content = result.xpath('./p[@class="desc"]')[0].text_content() results.append({'url': url, 'title': title, 'content': content}) |