sgpe: skip empty lines

This commit is contained in:
Romain Bignon 2013-07-28 22:54:30 +02:00
commit ca1417d5c7

View file

@ -214,6 +214,9 @@ class CardHistoryPage(SGPEPage):
raw = self.parser.tocleanstring(tds[self.COL_LABEL])
amount = self.parser.tocleanstring(tds[self.COL_AMOUNT])
if len(date) == 0:
continue
t = Transaction(i)
t.parse(date, raw)
t.set_amount(amount)