Commit ae831fa3 authored by Maxime Pommier's avatar Maxime Pommier Committed by ntome

[axabanque] Change the way that we handle missing part for the account id

parent db2d032c
......@@ -197,10 +197,7 @@ class AccountsPage(LoggedPage, MyHTMLPage):
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())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment