mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 08:28:46 +08:00
We don't need to log when we can't download a Gravatar
This commit is contained in:
parent
552e01a266
commit
bcf1a9d43f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user