Commit a2d5e5a1 by Jon Yurek

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

parent 23a71ec8
......@@ -17,7 +17,7 @@ module Paperclip
file = file.path if file.respond_to? "path"
geometry = begin
Paperclip.run("identify", "-format %wx%h :file", :file => "#{file}[0]")
rescue Cocaine::CommandLineError
rescue Cocaine::ExitStatusError
""
end
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