From 35f03a00a17b585da78a30cbe8a02981e1e20cc2 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Mon, 29 Sep 2014 00:34:54 +0200 Subject: [PATCH] fix crash on coming operations --- modules/ing/pages/accounts_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ing/pages/accounts_list.py b/modules/ing/pages/accounts_list.py index a7b882b6..6e20ef14 100644 --- a/modules/ing/pages/accounts_list.py +++ b/modules/ing/pages/accounts_list.py @@ -146,7 +146,7 @@ class AccountsList(LoggedPage, HTMLPage): def condition(self): if self.el.find('.//td[@class="date"]') is None: return False - if self.env['index'] > 0 and self.page.i < self.env['index']: + if 'index' in self.env and self.env['index'] > 0 and self.page.i < self.env['index']: self.page.i += 1 return False return True