From 6b54cd62596c8aefa57ed92309863fec92126c57 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Mon, 31 Aug 2015 12:33:43 +0200 Subject: [PATCH] fix crash when there is more data in the cell --- modules/boursorama/pages/investment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/boursorama/pages/investment.py b/modules/boursorama/pages/investment.py index f2c0c4c8..5c91e82e 100644 --- a/modules/boursorama/pages/investment.py +++ b/modules/boursorama/pages/investment.py @@ -42,7 +42,7 @@ class AccountMarket(Page): inv.id = inv.code = self.parser.tocleanstring(isin_div[0]) inv.quantity = Decimal(cells[1]) - inv.unitprice = Decimal(cells[2]) + inv.unitprice = Decimal(cells[2].xpath('text()')[0]) inv.unitvalue = Decimal(cells[3]) inv.valuation = Decimal(cells[4]) inv.diff = Decimal(cells[5])