From 566f1f8ef3f82578abe96e17405540eb959ce5bd Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Mon, 25 Nov 2013 11:24:16 +0100 Subject: [PATCH] fix parsing accounts when there are mandated ones --- modules/cmb/backend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/cmb/backend.py b/modules/cmb/backend.py index 34dc502f..6201a075 100644 --- a/modules/cmb/backend.py +++ b/modules/cmb/backend.py @@ -177,8 +177,8 @@ class CmbBackend(BaseBackend, ICapBank): else: raise BrokenPageError() - for tr in table[1].getiterator('tr'): - if tr.get('class') != 'LnTit' and tr.get('class') != 'LnTot': + for tr in tree.xpath('/html/body//table[contains(@class, "Tb")]/tr'): + if tr.get('class', None) not in ('LnTit', 'LnTot', 'LnMnTiers', None): account = Account() td = tr.xpath('td')