do not crash if there is no operations
This commit is contained in:
parent
039d022fe6
commit
5c5cb5da8e
2 changed files with 8 additions and 0 deletions
|
|
@ -320,3 +320,6 @@ class TransactionsPage(BasePage):
|
|||
t.parse(date, re.sub(r'[ ]+', ' ', raw), vdate)
|
||||
t.set_amount(credit, debit)
|
||||
yield t
|
||||
|
||||
def no_operations(self):
|
||||
return len(self.document.xpath('//table[@id="tbl1"]//td[@colspan]')) > 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue