diff app/models/tweet.rb @ 157:6e6051cd9cca

Or maybe not
author nanaya <me@nanaya.pro>
date Sat, 28 Jul 2018 03:42:23 +0900
parents 1abfa910d83e
children 74422bae017d
line wrap: on
line diff
--- a/app/models/tweet.rb	Sat Jul 28 02:46:44 2018 +0900
+++ b/app/models/tweet.rb	Sat Jul 28 03:42:23 2018 +0900
@@ -26,7 +26,7 @@
           if data[:result] == :ok
             if data[:data].any? && data[:data].first.user.id != @twitter_id
               wrong_user = data[:data].first.user
-              throw "Wrong timeline data. Requested: #{@twitter_id}, got: #{wrong_user.id} (#{wrong_user.name.printable})"
+              Rails.logger.warn "Wrong timeline data. Requested: #{@twitter_id}, got: #{wrong_user.id} (#{wrong_user.name.printable})"
             end
 
             data[:data] = data[:data].select do |tweet|