fix crash on special accounts
This commit is contained in:
parent
80250751e7
commit
b132484633
1 changed files with 2 additions and 0 deletions
|
|
@ -51,6 +51,8 @@ class AccountsList(BasePage):
|
||||||
for td in tr.getiterator('td'):
|
for td in tr.getiterator('td'):
|
||||||
if td.attrib.get('headers', '') == 'TypeCompte':
|
if td.attrib.get('headers', '') == 'TypeCompte':
|
||||||
a = td.find('a')
|
a = td.find('a')
|
||||||
|
if a is None:
|
||||||
|
continue
|
||||||
account.label = unicode(a.find("span").text)
|
account.label = unicode(a.find("span").text)
|
||||||
account._link_id = a.get('href', '')
|
account._link_id = a.get('href', '')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue