do not raise BrowserIncorrectPassword when the website displays an useless "urgent message" on login

This commit is contained in:
Romain Bignon 2013-05-30 14:21:51 +02:00
commit 8cd0dff1df
2 changed files with 14 additions and 10 deletions

View file

@ -25,7 +25,7 @@ from weboob.tools.browser import BasePage
from weboob.tools.capabilities.bank.transactions import FrenchTransaction as Transaction
__all__ = ['HomePage', 'LoginPage', 'LoginErrorPage', 'AccountsPage', 'TransactionsPage']
__all__ = ['HomePage', 'LoginPage', 'LoginErrorPage', 'AccountsPage', 'TransactionsPage', 'UselessPage']
class HomePage(BasePage):
@ -62,6 +62,9 @@ class LoginPage(BasePage):
def get_result_url(self):
return self.parser.tocleanstring(self.document.getroot())
class UselessPage(BasePage):
pass
class LoginErrorPage(BasePage):
pass