[fix] close #197 for all engines

This commit is contained in:
dalf 2015-02-13 11:17:00 +01:00
parent ec2516b93d
commit 5029cb4787
2 changed files with 5 additions and 5 deletions

View file

@ -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')