Skip to content

Firefly III: a personal finances manager

Add decrypt message.

James Coledc26ce308dd4
diff --git a/app/Repositories/Attachment/AttachmentRepository.php b/app/Repositories/Attachment/AttachmentRepository.php
index 18f6427d01..2d1f89e464 100644
--- a/app/Repositories/Attachment/AttachmentRepository.php
+++ b/app/Repositories/Attachment/AttachmentRepository.php
@@ -84,10 +84,10 @@ class AttachmentRepository implements AttachmentRepositoryInterface
if ($disk->exists($file)) {
$encryptedContent = (string)$disk->get($file);
-
try {
$unencryptedContent = Crypt::decrypt($encryptedContent); // verified
} catch (DecryptException $e) {
+ Log::debug(sprintf('Could not decrypt attachment #%d but this is fine: %s', $attachment->id, $e->getMessage()));
$unencryptedContent = $encryptedContent;
}
}