From 3f34c9d776c6835625c0e23d2d351e72005e4f34 Mon Sep 17 00:00:00 2001 From: Antti Leinonen Date: Fri, 20 Sep 2024 12:11:55 +0300 Subject: [PATCH] Add another catch to logo resizing --- app/models/organization.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/models/organization.rb b/app/models/organization.rb index 846bc3ee..d37419a1 100644 --- a/app/models/organization.rb +++ b/app/models/organization.rb @@ -109,5 +109,8 @@ def org_logo else 'missing.png' end + rescue ActiveStorage::InvariableError => e + Rails.logger.error("Could not resize image for organization #{id}: #{e.message}") + 'missing.png' end end