From 90bff29a8000c0332e00648f9fed2f2d2a6c5990 Mon Sep 17 00:00:00 2001 From: Maxime Gasselin Date: Mon, 11 Mar 2019 11:03:22 +0100 Subject: [PATCH] [caissedepargne] skip loan history No history page has been found for loans. We skip them. Closes: 37743@sibi --- modules/caissedepargne/cenet/browser.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/caissedepargne/cenet/browser.py b/modules/caissedepargne/cenet/browser.py index f7b92ec927..2905abfe42 100644 --- a/modules/caissedepargne/cenet/browser.py +++ b/modules/caissedepargne/cenet/browser.py @@ -26,6 +26,7 @@ from weboob.browser.exceptions import ClientError from weboob.exceptions import BrowserIncorrectPassword, BrowserUnavailable from weboob.capabilities.base import find_object +from weboob.capabilities.bank import Account from weboob.tools.capabilities.bank.transactions import sorted_transactions, FrenchTransaction from .pages import ( @@ -157,6 +158,8 @@ def get_loans_list(self): @need_login def get_history(self, account): + if account.type == Account.TYPE_LOAN: + return [] headers = { 'Content-Type': 'application/json; charset=UTF-8', 'Accept': 'application/json, text/javascript, */*; q=0.01' @@ -213,6 +216,8 @@ def get_history(self, account): @need_login def get_coming(self, account): + if account.type == Account.TYPE_LOAN: + return [] trs = [] headers = { -- GitLab