handling website error for market place

This commit is contained in:
Vincent Paredes 2015-08-06 11:10:24 +02:00 committed by Romain Bignon
commit 272ac9f1cd
2 changed files with 5 additions and 0 deletions

View file

@ -376,6 +376,9 @@ class IndexPage(Page):
class MarketPage(Page):
def is_error(self):
return self.document.xpath('//caption')[0].text == "Erreur"
def parse_decimal(self, td):
value = self.parser.tocleanstring(td)
if value and value != '-':