Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

avoid error when decrypting files with non-ascii character

domphonallmen117726ec725e
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)