1
0
mirror of https://github.com/funamitech/mastodon synced 2024-11-28 14:58:38 +09:00

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

This commit is contained in:
Eugen Rochko 2016-11-18 23:19:38 +01:00
parent e4f56fa942
commit 2c58e7e06a

View File

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