fix crash on ASV accounts history
This commit is contained in:
parent
f7d7240c09
commit
61f8ab8920
2 changed files with 9 additions and 0 deletions
|
|
@ -117,6 +117,11 @@ class AccountsList(BasePage):
|
|||
yield op
|
||||
|
||||
def get_history_jid(self):
|
||||
span = self.document.xpath('//span[@id="index:panelASV"]')
|
||||
if len(span) > 1:
|
||||
# Assurance Vie, we do not support this kind of account.
|
||||
return None
|
||||
|
||||
span = self.document.xpath('//span[starts-with(@id, "index:j_id")]')[0]
|
||||
jid = span.attrib['id'].split(':')[1]
|
||||
return jid
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue