fix crash when there is no link on an opening account
This commit is contained in:
parent
fd597ea637
commit
f0310dc576
1 changed files with 4 additions and 1 deletions
|
|
@ -48,7 +48,10 @@ class AccountsList(BasePage):
|
|||
# ignore account
|
||||
break
|
||||
account.label = self.parser.tocleanstring(span)
|
||||
account._link_id = td.xpath('.//a')[0].attrib['href']
|
||||
try:
|
||||
account._link_id = td.xpath('.//a')[0].attrib['href']
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
elif td.attrib.get('class', '') == 'account-more-actions':
|
||||
for a in td.getiterator('a'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue