mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
Don't rescue all errors.
This commit is contained in:
@@ -81,7 +81,7 @@ class UserAvatar < ActiveRecord::Base
|
||||
end
|
||||
end
|
||||
|
||||
rescue
|
||||
rescue Net::ReadTimeout
|
||||
# skip saving, we are not connected to the net
|
||||
ensure
|
||||
tempfile.close! if tempfile && tempfile.respond_to?(:close!)
|
||||
|
||||
Reference in New Issue
Block a user