Digg correction

Return no result instead of crashing if no result
This commit is contained in:
Cqoicebordel 2015-01-03 23:54:02 +01:00
parent 7b531c6fce
commit 4450ed5503

View File

@ -44,6 +44,9 @@ def response(resp):
search_result = loads(resp.text)
if search_result['html'] == '':
return results
dom = html.fromstring(search_result['html'])
# parse results