From 62e8f87f2c17c21d641ffe577adfbade8336e4b9 Mon Sep 17 00:00:00 2001 From: Dennis Schubert <mail@dennis-schubert.de> Date: Tue, 26 May 2015 05:23:40 +0200 Subject: [PATCH] Do not mute ActiveRecord::RecordNotUnique for now see #5971, regression from #5938 closes #5992 --- app/workers/base.rb | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/workers/base.rb b/app/workers/base.rb index e33135007f..ab506eb2cd 100644 --- a/app/workers/base.rb +++ b/app/workers/base.rb @@ -25,16 +25,6 @@ module Workers "already been taken" "is ignored by the post author" ).any? {|reason| e.message.include? reason } - rescue ActiveRecord::RecordNotUnique => e - Rails.logger.info("failed to save received object: #{e.message}") - raise e unless %w( - index_comments_on_guid - index_likes_on_guid - index_posts_on_guid - "duplicate key in table 'comments'" - "duplicate key in table 'likes'" - "duplicate key in table 'posts'" - ).any? {|index| e.message.include? index } end private -- GitLab