contents should be unicode

Fix it. Like 88c699e48d
This commit is contained in:
Daniel STAN 2014-01-27 22:34:40 +01:00
parent 9b6cfcafa2
commit fb9581389a
No known key found for this signature in database
GPG key ID: BC9BF8456E1C820B

View file

@ -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: