fix crash where there is no transactions for an account
This commit is contained in:
parent
9d75cd9c72
commit
391edde943
1 changed files with 3 additions and 0 deletions
|
|
@ -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()])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue