From ae831fa3cb2ab96ffa4ebccfc6e60f49a3b0f5d2 Mon Sep 17 00:00:00 2001 From: Maxime Pommier Date: Wed, 19 Jun 2019 10:39:30 +0200 Subject: [PATCH] [axabanque] Change the way that we handle missing part for the account id --- modules/axabanque/pages/bank.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/axabanque/pages/bank.py b/modules/axabanque/pages/bank.py index 2eca975df6..eab743f4ab 100644 --- a/modules/axabanque/pages/bank.py +++ b/modules/axabanque/pages/bank.py @@ -197,10 +197,7 @@ def get_list(self): break # get accounts id - try: - account.id = args['paramNumCompte'] + args['paramNumContrat'] - except KeyError: - account.id = args['paramNumCompte'] + account.id = args['paramNumContrat'] + args.get('paramNumContrat', '') if 'Visa' in account.label: card_id = re.search('(\d+)', box.xpath('./td[2]')[0].text.strip()) -- GitLab