handle error message after login
This commit is contained in:
parent
9b24f55266
commit
b8b506be4f
1 changed files with 5 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ import re
|
|||
from urlparse import urlparse, parse_qsl
|
||||
from decimal import Decimal, InvalidOperation
|
||||
|
||||
from weboob.exceptions import BrowserIncorrectPassword
|
||||
from weboob.capabilities import NotAvailable
|
||||
from weboob.capabilities.bank import Account
|
||||
from weboob.deprecated.browser import Page
|
||||
|
|
@ -35,6 +36,10 @@ class ProAccountsList(Page):
|
|||
COL_BALANCE = 3
|
||||
COL_COMING = 5
|
||||
|
||||
def on_loaded(self):
|
||||
for msg in self.document.xpath('//div[@id="idMessageInfoUdC"]'):
|
||||
raise BrowserIncorrectPassword(self.parser.tocleanstring(msg))
|
||||
|
||||
def get_list(self, pro=True):
|
||||
accounts = []
|
||||
for tr in self.document.xpath('//tr[@class="comptes"]'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue