Commit 90bff29a authored by Maxime Gasselin's avatar Maxime Gasselin Committed by Romain Bignon

[caissedepargne] skip loan history

No history page has been found for loans. We skip them.

Closes: 37743@sibi
parent ee825a6d
......@@ -26,6 +26,7 @@ from weboob.browser.url import URL
from weboob.browser.exceptions import ClientError
from weboob.exceptions import BrowserIncorrectPassword, BrowserUnavailable
from weboob.capabilities.base import find_object
from import Account
from import sorted_transactions, FrenchTransaction
from .pages import (
......@@ -157,6 +158,8 @@ class CenetBrowser(LoginBrowser, StatesMixin):
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 @@ class CenetBrowser(LoginBrowser, StatesMixin):
def get_coming(self, account):
if account.type == Account.TYPE_LOAN:
return []
trs = []
headers = {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment