diff --git a/modules/bp/pages/pro.py b/modules/bp/pages/pro.py index f80e4a9b68c93638e2226ed7600af74b964c8aa4..a2882ac981c1112b9705e2d26e4cb2a04cd102a9 100644 --- a/modules/bp/pages/pro.py +++ b/modules/bp/pages/pro.py @@ -69,7 +69,8 @@ def get_accounts_list(self): a.type = account_type a.id = unicode(re.search('([A-Z\d]{4}[A-Z\d\*]{3}[A-Z\d]{4})', link.attrib['title']).group(1)) a.label = unicode(link.attrib['title'].replace('%s ' % a.id, '')) - tmp_balance = CleanText(None).filter(cols[1]) + # We use '.text_content()' to avoid HTML comments like '' + tmp_balance = CleanText(None).filter(cols[1].text_content()) a.currency = a.get_currency(tmp_balance) if not a.currency: a.currency = u'EUR'