Fix ff breaking terminal (#4431)

This commit is contained in:
Henrique Joaquim
2023-03-08 12:08:59 +00:00
committed by GitHub
parent ff750ca00d
commit 5656dacff6

View File

@@ -1975,7 +1975,7 @@ def update_news_from_tweet_to_be_displayed() -> str:
url = f"https://twitter.com/x/status/{last_tweet.id_str}"
# In case the handle provided doesn't exist, we skip it
except tweepy.errors.NotFound:
except (tweepy.errors.NotFound, tweepy.errors.Unauthorized):
pass
if last_tweet_dt and news_tweet_to_use: