fix crash where there is no transactions for an account

This commit is contained in:
Romain Bignon 2012-12-10 14:05:09 +01:00 committed by Romain Bignon
commit 391edde943

View file

@ -140,6 +140,9 @@ class TransactionsPage(BasePage):
for tr in self.document.xpath('//table[@id="tbl1"]/tbody/tr'):
tds = tr.findall('td')
if len(tds) < 5:
continue
t = Transaction(tr.attrib['id'].split('_', 1)[1])
date = u''.join([txt.strip() for txt in tds[4].itertext()])