Skip to content

Commit 3f34c9d

Browse files
committed
Add another catch to logo resizing
1 parent 5f8fb27 commit 3f34c9d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/models/organization.rb

+3
Original file line numberDiff line numberDiff line change
@@ -109,5 +109,8 @@ def org_logo
109109
else
110110
'missing.png'
111111
end
112+
rescue ActiveStorage::InvariableError => e
113+
Rails.logger.error("Could not resize image for organization #{id}: #{e.message}")
114+
'missing.png'
112115
end
113116
end

0 commit comments

Comments
 (0)