Don't retry Diaspora::AuthorXMLAuthorMismatch

They're not healable and seem to only occur on
Friendica posts
This commit is contained in:
Jonne Haß 2014-09-06 03:26:07 +02:00
parent b35eb70975
commit 476376dcb0

View file

@ -12,7 +12,9 @@ module Workers
def suppress_annoying_errors(&block) def suppress_annoying_errors(&block)
yield yield
rescue Diaspora::ContactRequiredUnlessRequest, rescue Diaspora::ContactRequiredUnlessRequest,
Diaspora::RelayableObjectWithoutParent => e Diaspora::RelayableObjectWithoutParent,
# Friendica seems to provoke these
Diaspora::AuthorXMLAuthorMismatch => e
Rails.logger.info("error on receive: #{e.class}") Rails.logger.info("error on receive: #{e.class}")
rescue ActiveRecord::RecordInvalid => e rescue ActiveRecord::RecordInvalid => e
Rails.logger.info("failed to save received object: #{e.record.errors.full_messages}") Rails.logger.info("failed to save received object: #{e.record.errors.full_messages}")