app/services/scribo/site_export_service.rb in scribo-1.0.43 vs app/services/scribo/site_export_service.rb in scribo-1.0.44
- old
+ new
@@ -24,9 +24,11 @@
next if content.kind == 'folder'
zio.put_next_entry(base_path + content_path)
zio.write content.data_with_frontmatter
+ rescue StandardError => e
+ Rails.logger.error "Error while exporting content #{content.id}: #{e.message}"
end
end
["#{zip_name}.zip", stringio.string]
end