Skip to content

Commit

Permalink
avoid error when decrypting files with non-ascii character
Browse files Browse the repository at this point in the history
  • Loading branch information
domphonallmen authored Apr 2, 2019
1 parent 7687e7c commit 117726e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/documents/management/commands/change_storage_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def __gpg_to_unencrypted(passphrase):

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)
Expand Down

0 comments on commit 117726e

Please sign in to comment.