Return if nothing found
This commit is contained in:
@@ -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:]:
|
||||
|
||||
Reference in New Issue
Block a user