handling account without history

This commit is contained in:
Vincent Paredes 2015-06-12 14:11:31 +02:00 committed by Romain Bignon
commit 4bebb5de56

View file

@ -184,7 +184,10 @@ class BNPorc(Browser):
self.location('https://www.secure.bnpparibas.net/banque/portail/particulier/FicheA', urllib.urlencode(data))
execution = self.page.document.xpath('//form[@name="displayStatementForm"]/input[@name="_flowExecutionKey"]')[0].attrib['value']
e = self.page.document.xpath('//form[@name="displayStatementForm"]/input[@name="_flowExecutionKey"]')
if len(e) != 1:
return
execution = e[0].attrib['value']
data = {'_eventId': 'changeOperationsPerPage',
'newCategoryId': '',
'categorisationInProgress': '',