From ee234b80a71e3814d4d344f161b26aeaa0fbbd6c Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Tue, 9 Mar 2021 11:35:52 -0600 Subject: [PATCH] Fixed error when parsing long tweets. --- src/sessions/twitter/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sessions/twitter/session.py b/src/sessions/twitter/session.py index 9f05d83a..2795932f 100644 --- a/src/sessions/twitter/session.py +++ b/src/sessions/twitter/session.py @@ -388,7 +388,7 @@ class Session(base.baseSession): tweet.quoted_status.twishort = True for i in tweet.quoted_status.entities["user_mentions"]: if "@%s" % (i["screen_name"]) not in tweet.quoted_status.message and i["screen_name"] != tweet.user.screen_name: - if hasattr(tweet["quoted_status"], "retweeted_status") and tweet.retweeted_status.user.screen_name == i["screen_name"]: + if hasattr(tweet.quoted_status, "retweeted_status") and tweet.retweeted_status.user.screen_name == i["screen_name"]: continue tweet.quoted_status.message = u"@%s %s" % (i["screen_name"], tweet.message) else: