handle corner case
This commit is contained in:
parent
18c1df1502
commit
a75a853128
1 changed files with 2 additions and 1 deletions
|
|
@ -70,7 +70,8 @@ class AccountMarketInvestment(Page):
|
|||
|
||||
class AccountLifeInsuranceInvestment(Page):
|
||||
def iter_investment(self):
|
||||
rows = self.document.xpath('//table[@id="mefav_repartition_supports_BPF"]//tr')
|
||||
rows = self.document.xpath('//table[@id="mefav_repartition_supports_BPF"]//tr') or \
|
||||
self.document.xpath('//tbody[@id="mefav_repartition_supports"]//tr')
|
||||
for tr in rows:
|
||||
cells = clean_cells(tr.findall('td'))
|
||||
cells[3:] = clean_amounts(cells[3:])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue