NotImplemented exception for history on asv and clean code
This commit is contained in:
parent
8631de03e8
commit
ea030bf6ab
2 changed files with 1 additions and 5 deletions
|
|
@ -263,7 +263,7 @@ class IngBrowser(LoginBrowser):
|
||||||
return self.page.iter_history()
|
return self.page.iter_history()
|
||||||
else:
|
else:
|
||||||
# No history for ASV accounts.
|
# No history for ASV accounts.
|
||||||
return iter([])
|
raise NotImplementedError()
|
||||||
|
|
||||||
############# CapBill #############
|
############# CapBill #############
|
||||||
@need_login
|
@need_login
|
||||||
|
|
|
||||||
|
|
@ -170,10 +170,6 @@ class AccountsList(LoggedPage, HTMLPage):
|
||||||
item_xpath = '//table'
|
item_xpath = '//table'
|
||||||
|
|
||||||
def get_history_jid(self):
|
def get_history_jid(self):
|
||||||
if self.is_asv:
|
|
||||||
# Assurance Vie, we do not support this kind of account.
|
|
||||||
return None
|
|
||||||
|
|
||||||
span = Attr('//span[starts-with(@id, "index:j_id")]', 'id')(self.doc)
|
span = Attr('//span[starts-with(@id, "index:j_id")]', 'id')(self.doc)
|
||||||
jid = span.split(':')[1]
|
jid = span.split(':')[1]
|
||||||
return jid
|
return jid
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue