mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-22 01:23:43 +00:00
Fix exception for when no results returned.
This commit is contained in:
parent
c65385da96
commit
8b678445cc
1 changed files with 15 additions and 14 deletions
|
@ -105,6 +105,7 @@ class TokyoToshokanProvider(generic.TorrentProvider):
|
|||
with BS4Parser(data, features=["html5lib", "permissive"]) as soup:
|
||||
torrent_table = soup.find('table', attrs={'class': 'listing'})
|
||||
torrent_rows = torrent_table.find_all('tr') if torrent_table else []
|
||||
if torrent_rows:
|
||||
if torrent_rows[0].find('td', attrs={'class': 'centertext'}):
|
||||
a = 1
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue