From 8b119923e54c555d1dc4349555185f0789ad39d0 Mon Sep 17 00:00:00 2001 From: Julien LE JEUNE <mail.julien.le.jeune@gmail.com> Date: Sun, 20 May 2018 20:28:28 +0200 Subject: [PATCH] FIX your changes --- sickbeard/providers/torrent9.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sickbeard/providers/torrent9.py b/sickbeard/providers/torrent9.py index d64bd03a2..d16d363f3 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") -- GitLab