summaryrefslogtreecommitdiff
path: root/searx/engines
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2015-02-13 12:21:38 +0100
committerAdam Tauber <asciimoo@gmail.com>2015-02-13 12:21:38 +0100
commit3ff269c84c936a3ffc2e8e3168a4ac017047015b (patch)
tree4edae7e62bdd600a22bc370fd72529e998e7fa9b /searx/engines
parenta8e870fbb6eafe027cd7bea68f9c4c8c22d89558 (diff)
parent5029cb478755c152bfa7da2f6381cd95cc4ee238 (diff)
Merge pull request #237 from dalf/master
[fix] close #197 for all engines
Diffstat (limited to 'searx/engines')
-rw-r--r--searx/engines/kickass.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/searx/engines/kickass.py b/searx/engines/kickass.py
index 4e5a64350..ea7f17c23 100644
--- a/searx/engines/kickass.py
+++ b/searx/engines/kickass.py
@@ -45,11 +45,6 @@ def request(query, params):
def response(resp):
results = []
- # check if redirect comparing to the True value,
- # because resp can be a Mock object, and any attribut name returns something.
- if resp.is_redirect is True:
- return results
-
dom = html.fromstring(resp.text)
search_res = dom.xpath('//table[@class="data"]//tr')