lib/paperweight/post_process_job.rb in paperweight-1.0.1 vs lib/paperweight/post_process_job.rb in paperweight-1.0.2

- old
+ new

@@ -7,11 +7,12 @@ discard_on ActiveJob::DeserializationError def perform(model, name) processing = :"#{name}_processing" + image_url = model.public_send(processing) - tempfile = Download.new.download(model.public_send(processing)) - model.update!(name => tempfile, processing => nil) + return unless image_url + model.update!(name => Download.download(image_url), processing => nil) end end end