ignore an intermittent twitter bug

Related to #459
This commit is contained in:
Peter Bhat Harkins 2018-02-26 13:34:27 -06:00
parent a1486f8ce6
commit bb65fddd2a
1 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,9 @@ res = Twitter.oauth_request("/1.1/lists/members.json?list_id=#{list_id}" <<
"&count=5000&skip_status=true", :get)
their_users = res["users"].map{|u| [ u["screen_name"].downcase, true ] }.to_h
if their_users.empty?
raise "Intemittent Twitter bug: they said the list is empty when it's not"
end
if their_users.count >= 5000
STDERR.puts "need to implement paging for list members"
end