Commit 9365d838 authored by Nicolas Frandeboeuf's avatar Nicolas Frandeboeuf Committed by ntome

[cmso] Fix python3 compatibility (missing parts)

parent 7b6cd43f
......@@ -232,7 +232,7 @@ class CmsoParBrowser(LoginBrowser, StatesMixin):
return iter([])
if account.type == Account.TYPE_LIFE_INSURANCE:
url = json.loads(self.lifeinsurance.go(accid=account._index).content)['url']
url = json.loads(self.lifeinsurance.go(accid=account._index).text)['url']
url = self.location(url).page.get_link("opérations")
return self.location(url).page.iter_history()
......
......@@ -239,7 +239,7 @@ class AccountsPage(LoggedPage, JsonPage):
def get_lifenumber(self):
index = Dict('index')(self)
data = json.loads(self.page.browser.lifeinsurance.open(accid=index).content)
data = json.loads(self.page.browser.lifeinsurance.open(accid=index).text)
if not data:
raise SkipItem('account seems unavailable')
url = data['url']
......
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