Commit 0169a26b authored by Nicolas Frandeboeuf's avatar Nicolas Frandeboeuf Committed by Romain Bignon

[cmso] Fix python3 compatibility (use response.text instead of response.content) (fix #318)

parent ce2c7272
Pipeline #2711 canceled with stages
......@@ -218,7 +218,7 @@ class CmsoParBrowser(LoginBrowser, StatesMixin):
return self.accounts_list
def _go_market_history(self):
content ={'place': 'SITUATION_PORTEFEUILLE'}), headers=self.json_headers).content
content ={'place': 'SITUATION_PORTEFEUILLE'}), headers=self.json_headers).text
return, action='historique')
......@@ -302,7 +302,7 @@ class CmsoParBrowser(LoginBrowser, StatesMixin):
account = self.get_account(
if account.type in (Account.TYPE_LIFE_INSURANCE, Account.TYPE_PERP):
url = json.loads(['url']
url = json.loads(['url']
url = self.location(url).page.get_link("supports")
if not url:
return iter([])
......@@ -310,7 +310,7 @@ class CmsoParBrowser(LoginBrowser, StatesMixin):
elif account.type in (Account.TYPE_MARKET, Account.TYPE_PEA):
data = {"place": "SITUATION_PORTEFEUILLE"}
response =, headers=self.json_headers)
self.location(json.loads(response.text)['urlSSO']), action="situation")
if, account._owner):
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