Skip to content

Commit

Permalink
Do not throw exception if a Twitter user no longer exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed May 27, 2017
1 parent fc0e9ec commit ddefd77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app.rb
Expand Up @@ -96,6 +96,7 @@
tweet_mode: "extended"
})
return response.message if response.code == 401
return "This user id no longer exists. The user was likely deleted or recreated. Try resubscribing." if response.code == 404
raise TwitterError.new(response) if !response.success?

@data = response.parsed_response
Expand Down

0 comments on commit ddefd77

Please sign in to comment.