Digg's unit test

This commit is contained in:
Cqoicebordel 2015-01-29 00:26:12 +01:00
parent 92368a4107
commit 1d255061c7
3 changed files with 59 additions and 1 deletions

View file

@ -44,7 +44,7 @@ def response(resp):
search_result = loads(resp.text)
if search_result['html'] == '':
if 'html' not in search_result or search_result['html'] == '':
return results
dom = html.fromstring(search_result['html'])