Commit efc0af51 authored by Florian Duguet's avatar Florian Duguet Committed by Romain Bignon

[societegenerale] skip transaction without date

To avoid crash on sorted_transactions function in iter_coming.

this function compare date and rdate of all transactions
but it can happens sometimes that we don't have date for very recent transaction

Closes: 596487@redmine
parent d3aa1400
......@@ -82,6 +82,9 @@ class SGPEBrowser(LoginBrowser):
def get_cb_operations(self, account):
self.location('/Pgn/NavigationServlet?PageID=Cartes&MenuID=%sOPF&Classeur=1&NumeroPage=1&Rib=%s&Devise=%s' % (self.MENUID,, account.currency))
for coming in
if coming['date'] == 'Non definie':
# this is a very recent transaction and we don't know his date yet
for tr in self.card_history(account, coming):
yield tr
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment