From 7344a22b0efa1faffce2b1dbc8600756d8d67dab Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sat, 10 Nov 2012 09:47:37 +0100 Subject: [PATCH] fix parsing torrents descriptions --- modules/gazelle/pages/torrents.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/gazelle/pages/torrents.py b/modules/gazelle/pages/torrents.py index 99dd73b1..65037457 100644 --- a/modules/gazelle/pages/torrents.py +++ b/modules/gazelle/pages/torrents.py @@ -190,7 +190,8 @@ class TorrentsPage(BasePage): title_t = title_t[0] if title_t.find('strong') is not None: title_t = title_t.find('strong') - title = title_t.text.strip() + if title_t.text is not None: + title = title_t.text.strip() body_t = box.cssselect('div.body,div.desc') if body_t: