From b570e6bb66d5c87b69d232554f07763e52082d65 Mon Sep 17 00:00:00 2001 From: Quentin Defenouillere Date: Mon, 3 Dec 2018 17:02:58 +0100 Subject: [PATCH] [boursorama] Added Consumer Credits to the list of ignored Loans MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit in iter_history, trying the _webid request on a Loan or a Consumer Credit leads to a 404: "La page demandée n'existe plus!" Adding the Consumer Credits to the ignored accounts solves the problem. --- modules/boursorama/browser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/boursorama/browser.py b/modules/boursorama/browser.py index 3d668af345..257abf751f 100644 --- a/modules/boursorama/browser.py +++ b/modules/boursorama/browser.py @@ -358,7 +358,7 @@ def get_regular_transactions(self, account, coming): @retry_on_logout() @need_login def get_history(self, account, coming=False): - if account.type is Account.TYPE_LOAN or '/compte/derive' in account.url: + if account.type in (Account.TYPE_LOAN, Account.TYPE_CONSUMER_CREDIT) or '/compte/derive' in account.url: return [] if account.type is Account.TYPE_SAVINGS and u"PLAN D'\xc9PARGNE POPULAIRE" in account.label: return [] -- GitLab