fix crash when there is the coming column with empty value

This commit is contained in:
Romain Bignon 2013-12-09 09:32:08 +01:00
commit 1c0f2432e2

View file

@ -289,7 +289,7 @@ class AccountsPage(BasePage):
account._params['dialogActionPerformed'] = 'SOLDE'
account._params['attribute($SEL_$%s)' % tr.attrib['id'].split('_')[0]] = tr.attrib['id'].split('_', 1)[1]
if len(tds) >= 5:
if len(tds) >= 5 and len(tds[self.COL_COMING].xpath('.//a')) > 0:
_params = account._params.copy()
_params['dialogActionPerformed'] = 'ENCOURS_COMPTE'
next_pages.append(_params)