Skip to content

Commit

Permalink
Add another catch to logo resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
Redande committed Sep 20, 2024
1 parent 5f8fb27 commit 3f34c9d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/organization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3f34c9d

Please sign in to comment.