From 117726ec725e48ffd48b786b6e002f6bee5abe51 Mon Sep 17 00:00:00 2001 From: domphonallmen <35965315+domphonallmen@users.noreply.github.com> Date: Tue, 2 Apr 2019 11:38:00 +0200 Subject: [PATCH] avoid error when decrypting files with non-ascii character --- src/documents/management/commands/change_storage_type.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/management/commands/change_storage_type.py b/src/documents/management/commands/change_storage_type.py index 668f534a9..9fc82adce 100644 --- a/src/documents/management/commands/change_storage_type.py +++ b/src/documents/management/commands/change_storage_type.py @@ -75,7 +75,7 @@ class Command(BaseCommand): for document in encrypted_files: - print(coloured("Decrypting {}".format(document), "green")) + print(coloured("Decrypting {}".format(document).encode('utf-8'), "green")) old_paths = [document.source_path, document.thumbnail_path] raw_document = GnuPG.decrypted(document.source_file, passphrase)