From bda4d8ccd410017c873eb98d4c09d446b64dbc81 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 11 Aug 2022 12:27:44 +0200 Subject: [PATCH] split in multiples lines --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 13f875f..0b57a18 100644 --- a/main.py +++ b/main.py @@ -106,7 +106,9 @@ class Listener(StreamingClient): if tweet.conversation_id: if keys["VERBOSE"]: print("Thread...", end=" ") - if self._get_user(self.client.get_tweet(id=tweet.conversation_id, tweet_fields="author_id", user_auth=True).data.author_id).protected: + base_tweet = self.client.get_tweet(id=tweet.conversation_id, tweet_fields="author_id", user_auth=True).data + base_author = self._get_user(base_tweet.author_id) + if base_author.protected: if keys["VERBOSE"]: print("Auteur du premier tweet en privé, pas de réponses.") return