Private GIT

Skip to content
Snippets Groups Projects
Commit 2f33e5f8 authored by miigotu's avatar miigotu
Browse files

Merge pull request #147 from CristianBB/develop

Newpct: Correct control if there is no results
parents 9fa4065c 04bff7a8
Branches
No related tags found
No related merge requests found
......@@ -106,7 +106,7 @@ class newpctProvider(generic.TorrentProvider):
with BS4Parser(data, features=["html5lib", "permissive"]) as html:
torrent_tbody = html.find('tbody')
if not len(torrent_tbody):
if torrent_tbody is None:
logger.log(u"Data returned from provider does not contain any torrents", logger.DEBUG)
continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment