From 94d1fc4e226737ea174578ef2125dca68e20e7e1 Mon Sep 17 00:00:00 2001 From: jeancf Date: Mon, 22 Aug 2022 09:33:27 +0200 Subject: [PATCH] Fixed the fix of the fix --- twoot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twoot.py b/twoot.py index b753f58..3e021b2 100755 --- a/twoot.py +++ b/twoot.py @@ -417,7 +417,7 @@ def main(argv): # Only consider item of class 'replying-to' that is a direct child # 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: + if len(replying_to_class) != 0: tweet_text += 'Replying to ' + replying_to_class[0].a.get_text() + '\n\n' # Check it the tweet is a retweet from somebody else