fix crash if the date of a transaction is empty
This commit is contained in:
parent
d74be0340e
commit
624896f847
1 changed files with 4 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ from cStringIO import StringIO
|
|||
from weboob.tools.browser import BasePage, BrokenPageError
|
||||
from weboob.tools.json import json
|
||||
from weboob.capabilities.bank import Account
|
||||
from weboob.capabilities import NotAvailable
|
||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||
|
||||
|
||||
|
|
@ -246,6 +247,9 @@ class TransactionsPage(CDNBasePage):
|
|||
t.parse(date, raw)
|
||||
t.set_amount(line[self.COL_VALUE])
|
||||
|
||||
if t.date is NotAvailable:
|
||||
continue
|
||||
|
||||
if self.set_coming(t):
|
||||
continue
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue