mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 15:55:31 +01:00
avoid error when decrypting files with non-ascii character
This commit is contained in:
parent
7687e7ca53
commit
117726ec72
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ class Command(BaseCommand):
|
||||||
|
|
||||||
for document in encrypted_files:
|
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]
|
old_paths = [document.source_path, document.thumbnail_path]
|
||||||
raw_document = GnuPG.decrypted(document.source_file, passphrase)
|
raw_document = GnuPG.decrypted(document.source_file, passphrase)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue