diff --git a/app/models/api_user.rb b/app/models/api_user.rb index e10f4c5..6a03868 100644 --- a/app/models/api_user.rb +++ b/app/models/api_user.rb @@ -77,6 +77,8 @@ class APIUser < ApplicationRecord avatar.attach(io: image, filename: "#{hash}.webp") update!(last_avatar_hash: hash) true + rescue OpenURI::HTTPError => e + Rails.logger.warn(e) end def can_create_apikey?