diff --git a/modules/themisbanque/browser.py b/modules/themisbanque/browser.py index 2821536689815d4fa3f3a8ac0e979075827d48f7..24bf4ddba126fdbcd9a851c937a36787d53da6ff 100644 --- a/modules/themisbanque/browser.py +++ b/modules/themisbanque/browser.py @@ -57,8 +57,10 @@ def iter_accounts(self): @need_login def get_history(self, account): - self.location(account._link) - return self.page.get_operations() + if account._link: + self.location(account._link) + return self.page.get_operations() + return [] @need_login def get_profile(self): diff --git a/modules/themisbanque/pages.py b/modules/themisbanque/pages.py index e2b11278c929137b91de8cbf6eb7221264c8cb41..43d99acedcbb9639c79d675059a6cbf14441721c 100644 --- a/modules/themisbanque/pages.py +++ b/modules/themisbanque/pages.py @@ -28,7 +28,7 @@ from weboob.capabilities.base import NotAvailable from weboob.capabilities.profile import Profile from weboob.browser.filters.standard import CleanText, CleanDecimal, Async, Regexp, Join, Field -from weboob.browser.filters.html import Attr, Link, TableCell, ColumnNotFound +from weboob.browser.filters.html import Link, TableCell, ColumnNotFound from weboob.tools.capabilities.bank.transactions import FrenchTransaction from weboob.tools.capabilities.bank.iban import is_iban_valid from weboob.tools.compat import basestring @@ -99,7 +99,7 @@ def condition(self): obj_balance = CleanDecimal(TableCell('balance'), replace_dots=True) def obj__link(self): - return Attr(TableCell('id')(self)[0].xpath('./a'), 'href')(self) + return Link(TableCell('id')(self)[0].xpath('./a'), default=None)(self) def obj__url(self): return Link(TableCell('rib')(self)[0].xpath('./a[img[starts-with(@alt, "RIB")]]'), default=None)(self)