fix login error detection
This commit is contained in:
parent
35cdd3b69a
commit
14de4cbeb8
1 changed files with 4 additions and 2 deletions
|
|
@ -22,7 +22,7 @@ from decimal import Decimal
|
|||
import datetime
|
||||
import re
|
||||
|
||||
from weboob.tools.browser import BasePage
|
||||
from weboob.tools.browser import BasePage, BrowserIncorrectPassword
|
||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||
|
||||
|
||||
|
|
@ -67,7 +67,9 @@ class SummaryPage(BasePage):
|
|||
|
||||
|
||||
class UselessPage(BasePage):
|
||||
pass
|
||||
def on_loaded(self):
|
||||
for error in self.document.xpath('//li[@class="error"]'):
|
||||
raise BrowserIncorrectPassword(self.parser.tocleanstring(error))
|
||||
|
||||
|
||||
class TransactionSearchPage(BasePage):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue