rake: fix images:manifest failing on file permission errors.

Fix images:manifest failing with an exception when a file can't be
opened because we don't have permission to access the file.
This commit is contained in:
evazion
2021-03-20 16:15:16 -05:00
parent 048171fe29
commit c9ca5c0598

View File

@@ -25,8 +25,8 @@ namespace :images do
hash = {
path: File.absolute_path(path),
name: File.basename(path, ".*"),
md5: file.md5,
size: file.file_size,
md5: file&.md5,
size: file&.file_size,
error: e.message,
}