diff --git a/modules/caissedepargne/pages.py b/modules/caissedepargne/pages.py index 5a6b59b48f22ed713e379ef109fbbe2396fd3c19..8716c994329b7716e057440f220f5ad0f960912b 100644 --- a/modules/caissedepargne/pages.py +++ b/modules/caissedepargne/pages.py @@ -651,7 +651,17 @@ def _add_account(self, accounts, link, label, account_type, balance, number=None if account.type in (Account.TYPE_LIFE_INSURANCE, Account.TYPE_PERP): account.ownership = AccountOwnership.OWNER - balance = balance or self.get_balance(account) + if not balance: + try: + balance = self.get_balance(account) + except BrowserUnavailable as e: + if 'erreur_technique' in e.response.url: + # Details account are not accessible and navigation is broken here + # This account must be skipped + self.logger.warning('Could not access to %s details: we skip it', account.label) + self.browser.do_login() + return + raise if not empty(balance): account.balance = Decimal(FrenchTransaction.clean_amount(balance))