Return if nothing found

This commit is contained in:
Ruud
2012-07-13 22:35:00 +02:00
parent cdff4eb37d
commit b29655c9df
@@ -52,6 +52,9 @@ class TorrentLeech(TorrentProvider):
try:
result_table = html.find('table', attrs = {'id' : 'torrenttable'})
if not result_table:
return results
entries = result_table.find_all('tr')
for result in entries[1:]: