We don't need to log when we can't download a Gravatar

This commit is contained in:
Robin Ward 2017-05-09 14:43:39 -04:00
parent 552e01a266
commit bcf1a9d43f

View File

@ -82,9 +82,8 @@ class UserAvatar < ActiveRecord::Base
end
end
rescue => e
rescue
# skip saving, we are not connected to the net
Rails.logger.warn "#{e}: Failed to download external avatar: #{avatar_url}, user id #{ user.id }"
ensure
tempfile.close! if tempfile && tempfile.respond_to?(:close!)
end