mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-13 07:49:29 +00:00
Catch validation errors in ProcessFeedService so that one failing entry wouldn't stop others from going through
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user