diff --git a/modules/bp/backend.py b/modules/bp/backend.py index 612c51b5..9ed7af74 100644 --- a/modules/bp/backend.py +++ b/modules/bp/backend.py @@ -18,7 +18,7 @@ # along with weboob. If not, see . -from weboob.capabilities.bank import ICapBank +from weboob.capabilities.bank import ICapBank, Account from weboob.tools.backend import BaseBackend, BackendConfig from weboob.tools.value import ValueBackendPassword @@ -49,6 +49,8 @@ class BPBackend(BaseBackend, ICapBank): return self.browser.get_account(_id) def iter_history(self, account): + if account.type != Account.TYPE_MARKET: + raise NotImplementedError() for tr in self.browser.get_history(account): if not tr._coming: yield tr diff --git a/modules/bp/pages/accountlist.py b/modules/bp/pages/accountlist.py index 5a859d35..7df1b002 100644 --- a/modules/bp/pages/accountlist.py +++ b/modules/bp/pages/accountlist.py @@ -54,7 +54,7 @@ class AccountList(BasePage): account.label = to_unicode(tmp.text) account._link_id = tmp.get("href") if 'BourseEnLigne' in account._link_id: - continue + account.type = Account.TYPE_MARKET tmp = line.xpath("./td/span/strong") if len(tmp) >= 2: