Catch validation errors in ProcessFeedService so that one failing entry wouldn't stop others from going through

master
Eugen Rochko 8 years ago
parent e4f56fa942
commit 2c58e7e06a
  1. 3
      app/services/process_feed_service.rb

@ -36,6 +36,9 @@ class ProcessFeedService < BaseService
when :delete when :delete
return delete_status return delete_status
end end
rescue ActiveRecord::RecordInvalid => e
Rails.logger.debug "Nothing was saved for #{id} because: #{e}"
nil
end end
private private

Loading…
Cancel
Save