mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Don't rescue all errors.
This commit is contained in:
parent
907f6cd76b
commit
41fb76cc66
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ class UserAvatar < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
rescue
|
rescue Net::ReadTimeout
|
||||||
# skip saving, we are not connected to the net
|
# skip saving, we are not connected to the net
|
||||||
ensure
|
ensure
|
||||||
tempfile.close! if tempfile && tempfile.respond_to?(:close!)
|
tempfile.close! if tempfile && tempfile.respond_to?(:close!)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue