Commit 1ce2388f authored by Florian Duguet's avatar Florian Duguet Committed by Romain Bignon

[societegenerale] Change BrowserIncorrectPassword to ActionNeeded based on...

[societegenerale] Change BrowserIncorrectPassword to ActionNeeded based on error message in do_login.
parent f504ccb1
......@@ -19,7 +19,7 @@
from weboob.browser import LoginBrowser, URL, need_login, StatesMixin
from weboob.exceptions import BrowserIncorrectPassword, BrowserUnavailable
from weboob.exceptions import BrowserIncorrectPassword, BrowserUnavailable, ActionNeeded
from import Account, AddRecipientError
from weboob.browser.exceptions import BrowserHTTPNotFound
......@@ -98,6 +98,8 @@ class SocieteGenerale(LoginBrowser, StatesMixin):
raise BrowserUnavailable(error)
elif 'niv_auth_insuff' in error:
raise BrowserIncorrectPassword("Niveau d'authentification insuffisant")
elif 'Veuillez contacter' in error:
raise ActionNeeded(error)
raise BrowserIncorrectPassword(error)
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