diff --git a/sickbeard/providers/torrent9.py b/sickbeard/providers/torrent9.py index d64bd03a2b09c5f6f40367dbccacc31e624ee15d..d16d363f347b5067ebba80176003da8818fca669 100644 --- a/sickbeard/providers/torrent9.py +++ b/sickbeard/providers/torrent9.py @@ -80,8 +80,9 @@ class Torrent9Provider(TorrentProvider): continue with BS4Parser(data, 'html5lib') as html: - import ipdb;ipdb.set_trace() - torrent_rows = html.find('div', {'class': 'table-responsive'}).findAll('tr') + torrent_rows = html.find('div', {'class': 'table-responsive'}) + if not torrent_rows: + continue for result in torrent_rows: try: title = result.find('a').get_text(strip=False).replace("HDTV", "HDTV x264-Torrent9")