Private GIT

Skip to content
Snippets Groups Projects
Commit 04bff7a8 authored by CristianBB's avatar CristianBB
Browse files

Newpct: Correct control if there is no results.

parent f99b6b9b
No related branches found
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