logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

sidekiq_error_handler.rb (250B)


  1. # frozen_string_literal: true
  2. class SidekiqErrorHandler
  3. def call(*)
  4. yield
  5. rescue Mastodon::HostValidationError => e
  6. Rails.logger.error "#{e.class}: #{e.message}"
  7. Rails.logger.error e.backtrace.join("\n")
  8. # Do not retry
  9. end
  10. end