Skip to content

Commit

Permalink
Avoid error when apibay is failing to return results.
Browse files Browse the repository at this point in the history
Fixes #2614
Fixes #6256
  • Loading branch information
miigotu committed Apr 22, 2020
1 parent 8b28909 commit db5bd92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sickbeard/providers/thepiratebay.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def search(self, search_strings, age=0, ep_obj=None):
else:
data = self.get_url(search_url, returns="json")

if not data:
if not (data and isinstance(data, dict)):
logger.log("URL did not return data", logger.DEBUG)
continue

Expand Down

0 comments on commit db5bd92

Please sign in to comment.