fix parsing of transactions

This commit is contained in:
Romain Bignon 2012-12-07 18:12:20 +01:00
commit 8c831859b6

View file

@ -219,8 +219,9 @@ class AccountHistoryPage(BasePage):
for table in tables: for table in tables:
# Look for the relevant table in the Pro version # Look for the relevant table in the Pro version
header=table.getprevious() header=table.getprevious()
while str(header.tag)=="<built-in function Comment>": while header is not None and str(header.tag) != 'div':
header=header.getprevious() header=header.getprevious()
if header is not None:
header=header.find("div") header=header.find("div")
if header is not None: if header is not None:
header=header.find("span") header=header.find("span")