Commit eea72456 authored by Baptiste Delpey's avatar Baptiste Delpey Committed by Romain Bignon

[caissedepargne] throw ActionNeeded if login uncessfull multiple times

parent c03b7d76
Pipeline #1904 passed with stages
in 21 minutes and 25 seconds
......@@ -33,7 +33,9 @@ from import Account, AddRecipientStep, Recipient, Trans
from weboob.capabilities.base import NotAvailable
from weboob.capabilities.profile import Profile
from weboob.browser.exceptions import BrowserHTTPNotFound, ClientError
from weboob.exceptions import BrowserIncorrectPassword, BrowserUnavailable, BrowserHTTPError, BrowserPasswordExpired
from weboob.exceptions import (
BrowserIncorrectPassword, BrowserUnavailable, BrowserHTTPError, BrowserPasswordExpired, ActionNeeded
from import sorted_transactions, FrenchTransaction
from import create_french_liquidity
from import urljoin
......@@ -309,6 +311,11 @@ class CaisseEpargne(LoginBrowser, StatesMixin):
# the only possible way to log in w/o nuser is on WE. if we're here no need to go further.
if not self.nuser and self.typeAccount == 'WE':
raise BrowserIncorrectPassword(response['error'])
# we tested all, next iteration will throw the assertion
if self.inexttype == len(accounts_types) and 'Temporairement votre abonnement est bloqué' in response['error']:
raise ActionNeeded(response['error'])
if self.multi_type:
# try to log in with the next connection type's value
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