handling account with no history

This commit is contained in:
Vincent Paredes 2015-03-30 15:44:03 +02:00 committed by Romain Bignon
commit 7ef1ffb87c

View file

@ -150,6 +150,10 @@ class ProAccountsPage(AccountsPage):
for sub in re.findall("'([^']*)'", text):
l.append(sub)
if len(l) == 0:
#For account that have no history
return None, None
kind = self.group_dict['kind']
url = '/vos-comptes/IPT/appmanager/transac/' + kind + '?_nfpb=true&_windowLabel=portletInstance_18&_pageLabel=page_synthese_v1' + '&_cdnCltUrl=' + "/transacClippe/" + quote(l.pop(0))
args = {}