bred catch technical error at login
This commit is contained in:
parent
42d6e7034c
commit
47f12b0550
1 changed files with 3 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ from datetime import date
|
|||
from decimal import Decimal
|
||||
|
||||
from weboob.capabilities.bank import Account, Transaction
|
||||
from weboob.exceptions import BrowserIncorrectPassword, BrowserHTTPError
|
||||
from weboob.exceptions import BrowserIncorrectPassword, BrowserHTTPError, BrowserUnavailable
|
||||
from weboob.browser import DomainBrowser
|
||||
|
||||
|
||||
|
|
@ -44,6 +44,8 @@ class BredBrowser(DomainBrowser):
|
|||
raise BrowserIncorrectPassword('Bad login/password.')
|
||||
if 'gestion-des-erreurs/opposition' in self.url:
|
||||
raise BrowserIncorrectPassword('Your account is disabled')
|
||||
if '/pages-gestion-des-erreurs/erreur-technique' in self.url:
|
||||
raise BrowserUnavailable('A technical error occured')
|
||||
|
||||
ACCOUNT_TYPES = {'000': Account.TYPE_CHECKING,
|
||||
'999': Account.TYPE_MARKET,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue