diff --git a/client.py b/client.py index cd29dcdb4db722a11a2d244ca3166f3ec1061fad..846b6c2f98f553e7c4815733806dfb30b3fa58fb 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: