diff --git a/app/jobs/publish_post_job.rb b/app/jobs/publish_post_job.rb index 0bd03bb..5afd4b0 100644 --- a/app/jobs/publish_post_job.rb +++ b/app/jobs/publish_post_job.rb @@ -11,7 +11,7 @@ def perform(*posts) # rubocop:disable Metrics/MethodLength post.account.subscriptions.active.find_each do |subscription| AccountMailer.new_post(post, subscription).deliver_now - rescue Exception => e # rubocop:disable Lint/RescueException + rescue StandardError => e Rails.logger.error "Error sending post to #{subscription.email_address.email}: #{e}" # For AWS SES bounces and complaints, we may want to add specific error handling later end