Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
same as rarbg
  • Loading branch information
fernandog committed Aug 8, 2016
1 parent c2752dd commit 618ff46
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions sickbeard/providers/torrent/json/torrentday.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,7 @@ def search(self, search_strings, age=0, ep_obj=None): # pylint: disable=too-man
if self.freeleech:
post_data.update({'free': 'on'})

try:
response = self.get_url(self.urls['search'], post_data=post_data, returns='response')
response.raise_for_status()
except RequestException as msg:
logger.log(u'Error while connecting to provider: {error}'.format(error=msg), logger.ERROR)
continue

response = self.get_url(self.urls['search'], post_data=post_data, returns='response')
if not response.content:
logger.log('No data returned from provider', logger.DEBUG)
continue
Expand Down

0 comments on commit 618ff46

Please sign in to comment.