no history if account has no prev_balance

This commit is contained in:
Baptiste Delpey 2015-05-11 13:39:30 +02:00 committed by Romain Bignon
commit de0bf7b6ca

View file

@ -593,6 +593,8 @@ class TransactionsPage(BasePage):
def get_card_history(self, account, coming):
if coming:
debit_date = account._next_debit
elif not hasattr(account, '_prev_balance'):
return
else:
debit_date = account._prev_debit
if 'ContinueTask.do' in self.url: