From e877f8faa6e332686d472e040b68a0c1f063d2b1 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Wed, 8 Oct 2014 13:02:34 +0200 Subject: [PATCH] fix parsing of huge account balances --- modules/cmso/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cmso/pages.py b/modules/cmso/pages.py index 4e3023bc..ce501380 100644 --- a/modules/cmso/pages.py +++ b/modules/cmso/pages.py @@ -45,7 +45,7 @@ class AccountsPage(Page): while account.id in names: account.id = account.id + '1' names.add(account.id) - account.balance = Decimal(li.cssselect('p.row-right')[0].text.strip().replace(' ', '').replace(',', '')) + account.balance = Decimal(li.cssselect('p.row-right')[0].text.strip().replace(' ', '').replace(u'\xa0', '').replace(',', '')) account._link = li.attrib['href'] yield account