diff --git a/modules/fortuneo/pages/accounts_list.py b/modules/fortuneo/pages/accounts_list.py index f8f363a2..081f3f38 100644 --- a/modules/fortuneo/pages/accounts_list.py +++ b/modules/fortuneo/pages/accounts_list.py @@ -22,7 +22,7 @@ import re import datetime from weboob.capabilities.bank import Account -from weboob.tools.browser import BasePage#, BrokenPageError +from weboob.tools.browser import BasePage, BrowserIncorrectPassword from weboob.capabilities import NotAvailable from weboob.tools.capabilities.bank.transactions import FrenchTransaction @@ -85,6 +85,11 @@ class AccountHistoryPage(BasePage): return operations class AccountsList(BasePage): + def on_loaded(self): + warn = self.document.xpath('//div[@id="message_renouvellement_mot_passe"]') + if len(warn) > 0: + raise BrowserIncorrectPassword(warn[0].text) + def get_list(self): l = []