don't care if no table is found (it means that there is no result)
This commit is contained in:
parent
550fee93ba
commit
24276ff868
1 changed files with 1 additions and 3 deletions
|
|
@ -48,9 +48,7 @@ class TorrentsPage(BasePage):
|
||||||
table = self.document.getroot().cssselect('table.torrent_table')
|
table = self.document.getroot().cssselect('table.torrent_table')
|
||||||
if not table:
|
if not table:
|
||||||
table = self.document.getroot().cssselect('table#browse_torrent_table')
|
table = self.document.getroot().cssselect('table#browse_torrent_table')
|
||||||
if not table:
|
if table:
|
||||||
warning('No table found')
|
|
||||||
else:
|
|
||||||
table = table[0]
|
table = table[0]
|
||||||
current_group = None
|
current_group = None
|
||||||
for tr in table.findall('tr'):
|
for tr in table.findall('tr'):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue