mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 10:25:35 +08:00
FIX: If there's an error downloading, don't raise it
This commit is contained in:
parent
9090c7b05b
commit
f8c503186e
@ -82,7 +82,7 @@ class UserAvatar < ActiveRecord::Base
|
||||
end
|
||||
end
|
||||
|
||||
rescue Net::ReadTimeout
|
||||
rescue Net::ReadTimeout, OpenURI::HTTPError
|
||||
# skip saving, we are not connected to the net
|
||||
ensure
|
||||
tempfile.close! if tempfile && tempfile.respond_to?(:close!)
|
||||
|
Loading…
x
Reference in New Issue
Block a user