From dc28c29c6f18344d90eb4346005f2167a283600d Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 11 Aug 2022 13:50:42 +0200 Subject: [PATCH] fix private account detection --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index afb5cee..ae2843d 100644 --- a/main.py +++ b/main.py @@ -107,8 +107,8 @@ class Listener(StreamingClient): if keys["VERBOSE"]: print("Thread...", end=" ") 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 we have an author ID, the author account is in private + if base_tweet.author_id: if keys["VERBOSE"]: print("Auteur du premier tweet en privé, pas de réponses.") return