do not crash when we aren't on a operations page

This commit is contained in:
Romain Bignon 2014-03-26 11:10:22 +01:00
commit aa2e93d461

View file

@ -92,6 +92,9 @@ class CreditMutuelBrowser(LoginBrowser):
else:
self.location('%s/%s/fr/banque/%s' % (self.BASEURL, self.currentSubBank, page_url))
if not self.operations.is_here():
return iter([])
return self.pagination(lambda: self.page.get_history())
def get_history(self, account):