Commit a2d5e5a1 by Jon Yurek

Don't over-rescue errors, it's bad for you.

parent 23a71ec8
...@@ -17,7 +17,7 @@ module Paperclip ...@@ -17,7 +17,7 @@ module Paperclip
file = file.path if file.respond_to? "path" file = file.path if file.respond_to? "path"
geometry = begin geometry = begin
Paperclip.run("identify", "-format %wx%h :file", :file => "#{file}[0]") Paperclip.run("identify", "-format %wx%h :file", :file => "#{file}[0]")
rescue Cocaine::CommandLineError rescue Cocaine::ExitStatusError
"" ""
end end
parse(geometry) || parse(geometry) ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment