From 30be0904d084f5d440cee9133027e715543b2f20 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 11 Aug 2022 13:58:29 +0200 Subject: [PATCH] check condition --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 7a15071..9f78c5e 100644 --- a/main.py +++ b/main.py @@ -108,7 +108,7 @@ class Listener(StreamingClient): print("Thread...", end=" ") base_tweet = self.client.get_tweet(id=tweet.conversation_id, tweet_fields="author_id", user_auth=True).data # If we have an author ID, the author account is in private - if base_tweet.author_id: + if hasattr(base_tweet, 'author_id'): if keys["VERBOSE"]: print("Auteur du premier tweet en privé, pas de réponses.") return