Permalink
Browse files

Rescue exceptions on Twitter call in UserHelper

  • Loading branch information...
1 parent 415046b commit d05e81eddeb761ae9ce32fb72d136e138cf02636 @benders benders committed Jan 24, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/helpers/user_helper.rb
@@ -6,6 +6,6 @@ def following_alerts?
@@twitter_client ||= Twitter::Base.new(@@httpauth)
@@alert_user_id ||= @@twitter_client.verify_credentials.id
- current_user.twitter.get('/friends/ids.json').include?(@@alert_user_id)
+ current_user.twitter.get('/friends/ids.json').include?(@@alert_user_id) rescue nil
end
end

0 comments on commit d05e81e

Please sign in to comment.