From 221f73d600725c9613b8b243517e14afd86167c1 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sat, 23 Feb 2013 12:58:04 +0100 Subject: [PATCH] support when there is an error --- modules/lcl/pages.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/lcl/pages.py b/modules/lcl/pages.py index cd0b45e8..4cce4dc1 100644 --- a/modules/lcl/pages.py +++ b/modules/lcl/pages.py @@ -141,6 +141,11 @@ class ContractsPage(BasePage): self.browser.submit() class AccountsPage(BasePage): + def on_loaded(self): + warn = self.document.xpath('//div[@id="attTxt"]') + if len(warn) > 0: + raise BrowserUnavailable(warn[0].text) + def get_list(self): l = [] ids = set()