From 24276ff868889fc17208e01e41b619ac6a4c18c4 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sun, 2 May 2010 19:24:49 +0200 Subject: [PATCH] don't care if no table is found (it means that there is no result) --- weboob/backends/gazelle/pages/torrents.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/weboob/backends/gazelle/pages/torrents.py b/weboob/backends/gazelle/pages/torrents.py index 819dff1d..566a5a92 100644 --- a/weboob/backends/gazelle/pages/torrents.py +++ b/weboob/backends/gazelle/pages/torrents.py @@ -48,9 +48,7 @@ class TorrentsPage(BasePage): table = self.document.getroot().cssselect('table.torrent_table') if not table: table = self.document.getroot().cssselect('table#browse_torrent_table') - if not table: - warning('No table found') - else: + if table: table = table[0] current_group = None for tr in table.findall('tr'):