Commit fb958138 authored by Daniel Stan's avatar Daniel Stan

contents should be unicode

Fix it. Like 88c699e4
parent 9b6cfcaf
......@@ -707,7 +707,12 @@ Enregistrez le fichier vide pour annuler.\n"""
else:
passfile = value
(sin, sout) = gpg(options, 'decrypt')
sin.write(passfile['contents'].encode("utf-8"))
contents = passfile['contents']
# <ducktape> (waddle waddle)
if isinstance(contents, list):
contents = contents[-1]
# </ducktape>
sin.write(contents.encode("utf-8"))
sin.close()
texte = sout.read().decode("utf-8")
if new_roles is None:
......
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