paypal: Oops, really fix empty row issue

This commit is contained in:
Laurent Bachelier 2013-02-12 22:07:39 +01:00
commit 8898f7facd

View file

@ -268,7 +268,7 @@ class HistoryPage(BasePage):
'September', 'October', 'November', 'December']
date_format, time_format, months = self.guess_format()
for row in self.document.xpath('//table[@id="transactionTable"]/tbody/tr'):
if row.xpath('.//td') < 5:
if len(row.xpath('.//td')) < 5:
continue
amount = row.xpath('.//td[@headers="gross"]')[-1].text_content().strip()