fix 4chan backend to support message "AMERICA FUCK YEAH" outside of a thread

This commit is contained in:
Romain Bignon 2011-05-03 11:55:57 +02:00
commit 3121e0c57d

View file

@ -84,6 +84,8 @@ class BoardPage(BasePage):
filename = span.text
article = Message(self.browser, self.board, 0, filename, url)
self.articles.append(article)
if article is None:
continue
if div.tag == 'input' and div.attrib.get('type', 'checkbox') and div.attrib.get('value', 'delete'):
article.id = int(div.attrib.get('name', '0'))
if div.tag == 'blockquote':