do not try to get IBAN for delegated accounts
This commit is contained in:
parent
14a11abb40
commit
5e267fb689
1 changed files with 6 additions and 1 deletions
|
|
@ -54,7 +54,12 @@ class AccountsList(Page):
|
|||
account.type = typeid
|
||||
yield account
|
||||
elif tr.get('class', '') == 'listeActionBig' and account is not None:
|
||||
self._parse_iban(account, tr.xpath('.//a')[-1].get('href', ''))
|
||||
try:
|
||||
url = tr.xpath('.//a')[-1].get('href', '')
|
||||
except IndexError:
|
||||
pass
|
||||
else:
|
||||
self._parse_iban(account, url)
|
||||
account = None
|
||||
|
||||
def _parse_account(self, tr):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue