Skip to content

Commit

Permalink
filelist: added try-except to the new request
Browse files Browse the repository at this point in the history
  • Loading branch information
cvium committed Feb 25, 2017
1 parent 7d133a2 commit 0601be6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flexget/plugins/sites/filelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,11 @@ def search(self, task, entry, config):
# if the title is shortened, then do a request to get the full one :(
if title.endswith('...'):
url = BASE_URL + torrent_info[1].find('a')['href']
request = self.get(url, {}, config['username'], config['password'])
try:
request = self.get(url, {}, config['username'], config['password'])
except RequestException as e:
log.error('FileList.ro request failed: %s', e)
continue
title_soup = get_soup(request.content)
title = title_soup.find('div', attrs={'class': 'cblock-header'}).text

Expand Down

0 comments on commit 0601be6

Please sign in to comment.