diff --git a/lib/alchemy/upgrader/three_point_four.rb b/lib/alchemy/upgrader/three_point_four.rb index 3f60ce2426..e1f11495c2 100644 --- a/lib/alchemy/upgrader/three_point_four.rb +++ b/lib/alchemy/upgrader/three_point_four.rb @@ -18,7 +18,7 @@ def store_image_file_format pictures.find_each(batch_size: 100).with_index do |pic, i| begin puts " -> Reading file format of #{pic.image_file_name} (#{i + 1}/#{count})" - format = pic.image_file.identify('-ping -format "%m"') + format = pic.image_file.identify('-ping -format "%m"') if pic.image_file.file pic.update_column('image_file_format', format.to_s.chomp.downcase) converted_pics += 1 rescue Dragonfly::Job::Fetch::NotFound => e