Fixed the fix

This commit is contained in:
jeancf 2022-08-22 09:30:52 +02:00
parent eb0c0f2e75
commit 82a9430160

View File

@ -418,7 +418,7 @@ def main(argv):
# of class 'tweet-body' in status. Others can be in a quoted tweet.
replying_to_class = status.select("div.tweet-body > div.replying-to")
if replying_to_class is not None:
tweet_text += 'Replying to ' + replying_to_class.a.get_text() + '\n\n'
tweet_text += 'Replying to ' + replying_to_class[0].a.get_text() + '\n\n'
# Check it the tweet is a retweet from somebody else
if author_account.lower() != twit_account.lower():