mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 19:00:44 +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
|
||||||
end
|
end
|
||||||
|
|
||||||
rescue => e
|
rescue
|
||||||
# skip saving, we are not connected to the net
|
# 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
|
ensure
|
||||||
tempfile.close! if tempfile && tempfile.respond_to?(:close!)
|
tempfile.close! if tempfile && tempfile.respond_to?(:close!)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user