handling website error for market place
This commit is contained in:
parent
1959e79048
commit
272ac9f1cd
2 changed files with 5 additions and 0 deletions
|
|
@ -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 != '-':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue