Improved error handling/logging for tweet import.
This commit is contained in:
parent
1fbd368f02
commit
7a1df2e400
1 changed files with 2 additions and 2 deletions
|
@ -274,9 +274,9 @@ class TweetBase
|
|||
begin
|
||||
parent_tweet = @client.status(tweet.in_reply_to_status_id)
|
||||
ticket = to_group(parent_tweet, group_id, channel)
|
||||
rescue Twitter::Error::NotFound
|
||||
rescue Twitter::Error::NotFound, Twitter::Error::Forbidden => e
|
||||
# just ignore if tweet has already gone
|
||||
Rails.logger.info "Can't import tweet (#{tweet.in_reply_to_status_id}), tweet not found"
|
||||
Rails.logger.info "Can't import tweet (#{tweet.in_reply_to_status_id}), #{e.message}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue