diff --git a/html/modules/custom/ghi_plans/src/Helpers/AttachmentHelper.php b/html/modules/custom/ghi_plans/src/Helpers/AttachmentHelper.php index b69845237..8b09156c6 100644 --- a/html/modules/custom/ghi_plans/src/Helpers/AttachmentHelper.php +++ b/html/modules/custom/ghi_plans/src/Helpers/AttachmentHelper.php @@ -26,7 +26,12 @@ class AttachmentHelper { public static function processAttachments(array $attachments) { $processed = []; foreach ($attachments as $attachment) { - $processed[$attachment->id] = self::processAttachment($attachment); + try { + $processed[$attachment->id] = self::processAttachment($attachment); + } + catch (InvalidTypeException $e) { + // Ignore this for the moment. + } } return $processed; }