Commit f21512f2 authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Vincent A

[cragr] Handle iter_investments for "Patrimoine St Honoré" Life Insurances

We need to handle this label in the "life_insurance_investments" case so
that investments can be fetched properly.
parent d5e0e1ef
......@@ -715,7 +715,7 @@ class CreditAgricoleBrowser(LoginBrowser, StatesMixin):
if (
account.type == Account.TYPE_LIFE_INSURANCE
and ('rothschild' in account.label.lower() or re.match(r'^open (perspective|strat)', account.label, re.I))
and re.match(r'(rothschild)|(^patrimoine st honor)|(^open (perspective|strat))', account.label, re.I)
):
# We must go to the right perimeter before trying to access the Life Insurance investments
self.go_to_account_space(account._contract)
......
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