about summary refs log tree commit diff
path: root/lib/paperclip
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-07-03 03:05:32 +0200
committerGitHub <noreply@github.com>2020-07-03 03:05:32 +0200
commit534da9ba234dc9235bdf18fb31b37842c46305a6 (patch)
tree36b470c7b204464b83e092a7465c2dd4a89f36ff /lib/paperclip
parent162adf61f268beac6e178f6f79f203b213055915 (diff)
Fix audio uploads without embedded image (#14203)
Diffstat (limited to 'lib/paperclip')
-rw-r--r--lib/paperclip/image_extractor.rb2
1 files changed, 1 insertions, 1 deletions
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