From 4641d83fcbffead62e8b41c4452f3abc5358c81e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gl=C3=BCpker?= Date: Fri, 30 Jul 2021 12:51:56 +0200 Subject: Fix twitter issue, when rt['text'] isn't available (Just display id for now, that is always available) --- twitter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'twitter.py') diff --git a/twitter.py b/twitter.py index b7088cd..51dd51f 100755 --- a/twitter.py +++ b/twitter.py @@ -106,9 +106,9 @@ def parse_tweet(user, tweet, included_tweets, included_media): title, description, ref_tweet.get("entities", {}).get("urls", []) ) elif rt["type"] == "replied_to": - description += "
This was a reply to:
" + rt["id"] + description += "
This was a reply to: " + rt["id"] elif rt["type"] == "quoted": - description += "
Quoted tweet:
" + rt["text"] + description += "
Quoted tweet: " + rt["id"] else: description += f"

Unknown reference type: {rt['type']}" -- cgit v1.2.3