Fix small issue

This commit is contained in:
Dylan 2023-08-01 14:11:21 +01:00
parent 53128fef58
commit aafb72f307

View File

@ -74,7 +74,7 @@ def extractStatus_syndication(url):
tweet = requests.get("https://cdn.syndication.twimg.com/tweet-result?id=" + twid)
if tweet.status_code == 404:
if tweet.status_code == 404 or tweet.status_code == 403:
raise twExtractError.TwExtractError(404, "Tweet not found")
output = tweet.json()
if "errors" in output: