From fb9581389af8357e929a6ff722f4b3c8311360e8 Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Mon, 27 Jan 2014 22:34:40 +0100 Subject: [PATCH] contents should be unicode Fix it. Like 88c699e48d635d7d6 --- client.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client.py b/client.py index cd29dcd..846b6c2 100755 --- a/client.py +++ b/client.py @@ -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'] + # (waddle waddle) + if isinstance(contents, list): + contents = contents[-1] + # + sin.write(contents.encode("utf-8")) sin.close() texte = sout.read().decode("utf-8") if new_roles is None: -- GitLab