79334970

Date: 2025-01-07 05:42:04
Score: 0.5
Natty:
Report link

In my case, I am getting this issue when the file being processed does not exist. I fixed it by adding a condition(file.file.exists?) to check whether the file exists or not calling recreate_versions!.

file.recreate_versions! if file.present? && crop_x.present?

file.recreate_versions! if file.present? && crop_x.present? && file.file.exists?

Reasons:
  • Whitelisted phrase (-2): I fixed
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Philip