Commit 9223d91f authored by Yoann Guillard's avatar Yoann Guillard Committed by Vincent A

[creditdunord] Encoding issue compatibility python 2/3

when weboob was lauched by python 3, the accounts' id was containing
bytestring (eg : 123456789b'0'b'1' instead of 12345678901)

this created a new account and deleted the older one
so when the client wanted to access/actived it, he had an error
then we switched the client on his new account in the backend,
but the problem occured again when it forced a synchronisation
The automatic sync and the forced one do not use the same python version

this issue came from the use of :'utf-8')
resolved by :
parent a0c79c18
Pipeline #3263 passed with stages
in 16 minutes and 40 seconds
......@@ -43,6 +43,7 @@ from import FrenchTransaction
from import is_isin_valid
from import GridVirtKeyboard
from import quote, unicode
from import to_unicode
from import json
......@@ -484,7 +485,7 @@ class ProAccountsPage(AccountsPageMixin):
args[input.attrib['name']] = input.attrib.get('value', '')
for i, key in enumerate(self.ARGS):
args[key] = unicode(l[self.ARGS.index(key)]).encode(self.browser.ENCODING)
args[key] = to_unicode(l[self.ARGS.index(key)])
args['PageDemandee'] = 1
args['PagePrecedente'] = 1
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