fix unicode warning

This commit is contained in:
Bezleputh 2014-06-12 17:57:47 +02:00
commit b8a1df26c1

View file

@ -103,7 +103,7 @@ class GenericNewsPage(BasePage):
def get_author(self):
try:
return self.get_element_author().text_content().strip()
return u'%s' % self.get_element_author().text_content().strip()
except (NoAuthorElement, NoneMainDiv):
#TODO: Mettre un warning
return self.__article.author