From a99609e63f7e3bc425fb70166c237e689b106430 Mon Sep 17 00:00:00 2001 From: Jeppe Toustrup Date: Wed, 4 Mar 2015 13:17:21 +0100 Subject: [PATCH 1/1] Iterate over the original_tweet variable, not the tweet module --- rainbowstream/rainbow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index 9aa5d44..742930e 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -531,7 +531,7 @@ def reply_all(): original_tweet = t.statuses.show(id=tid) text = original_tweet['text'] nick_ary = [original_tweet['user']['screen_name']] - for user in tweet['entities']['user_mentions']: + for user in list(original_tweet['entities']['user_mentions']): if user['screen_name'] not in nick_ary \ and user['screen_name'] != g['original_name']: nick_ary.append(user['screen_name']) -- 2.25.1