From 2a4469bddc53d7d0833ad093a9d46db6875060a4 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Thu, 14 Aug 2014 18:33:35 +0200 Subject: [PATCH] hellobank: get default account name if the custom name is empty --- modules/hellobank/perso/accounts_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hellobank/perso/accounts_list.py b/modules/hellobank/perso/accounts_list.py index 3b129207..ea5c55fe 100644 --- a/modules/hellobank/perso/accounts_list.py +++ b/modules/hellobank/perso/accounts_list.py @@ -50,7 +50,7 @@ class AccountsList(BasePage): id_famille = famille['idFamilleCompte'] for compte in famille['compte']: account = Account() - account.label = u''+compte['libellePersoProduit'] + account.label = unicode(compte['libellePersoProduit'] or compte['libelleProduit']) account.currency = account.get_currency(compte['devise']) account.balance = Decimal(str(compte['soldeDispo'])) account.coming = Decimal(str(compte['soldeAVenir']))