diff --git a/modules/paypal/pages.py b/modules/paypal/pages.py index 99e844dd..79e090ce 100644 --- a/modules/paypal/pages.py +++ b/modules/paypal/pages.py @@ -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()