split in multiples lines

This commit is contained in:
Mylloon 2022-08-11 12:27:44 +02:00
parent 43c962c3e0
commit bda4d8ccd4
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -106,7 +106,9 @@ class Listener(StreamingClient):
if tweet.conversation_id: if tweet.conversation_id:
if keys["VERBOSE"]: if keys["VERBOSE"]:
print("Thread...", end=" ") 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"]: if keys["VERBOSE"]:
print("Auteur du premier tweet en privé, pas de réponses.") print("Auteur du premier tweet en privé, pas de réponses.")
return return