From 534da9ba234dc9235bdf18fb31b37842c46305a6 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 3 Jul 2020 03:05:32 +0200 Subject: [PATCH] Fix audio uploads without embedded image (#14203) --- lib/paperclip/image_extractor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/paperclip/image_extractor.rb b/lib/paperclip/image_extractor.rb index f5a54d1a5..aab675a06 100644 --- a/lib/paperclip/image_extractor.rb +++ b/lib/paperclip/image_extractor.rb @@ -43,7 +43,7 @@ module Paperclip begin cli.run - rescue Cocaine::ExitStatusError + rescue Cocaine::ExitStatusError, ::Av::CommandError dst.close(true) return nil end