begin
(Client.follower_ids.to_a - Client.friend_ids.to_a).each do |user_id|
[...]
if (EXCEPTIONS_LIST.include? user_name)
my_log_action = "#{MY_OWNER}:#{MY_SCREEN_NAME}:Follaback:User #{user_name}(# {user_id}) found in exceptions list. Skipping."
logAction(my_log_action)
next
end
Client.follow(user_id)
rescue Twitter::Error::TooManyRequests => error
puts error
p 'We exceeded our rate limit, sleeping for ' + error.rate_limit.reset_in.to_s + ' seconds before retrying.'
sleep error.rate_limit.reset_in
exit