fix crash on coming operations

This commit is contained in:
Romain Bignon 2014-09-29 00:34:54 +02:00
commit 35f03a00a1

View file

@ -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