Skip to content

Commit

Permalink
Fix #362
Browse files Browse the repository at this point in the history
  • Loading branch information
duramato authored and fernandog committed Apr 12, 2016
1 parent feb86ad commit a5cb48b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sickbeard/providers/hd4free.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,16 @@ def search(self, search_strings, age=0, ep_obj=None): # pylint: disable=too-man
except ValueError:
logger.log("No data returned from provider", logger.DEBUG)
continue


if not jdata:
logger.log(u"No data returned from provider", logger.DEBUG)
continue

error = jdata.get('error')
if error:
logger.log(u"{}".format(error), logger.DEBUG)
return results

if not jdata:
logger.log(u"No data returned from provider", logger.DEBUG)
continue

try:
if jdata['0']['total_results'] == 0:
logger.log(u"Provider has no results for this search", logger.DEBUG)
Expand Down

0 comments on commit a5cb48b

Please sign in to comment.