From 95c41a346fa3e1dfe9428cdfbf0e878179803f76 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sat, 23 Feb 2013 13:20:50 +0100 Subject: [PATCH] support when website asks to renew password --- modules/fortuneo/pages/accounts_list.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 = []