Remove 403 check

This commit is contained in:
Dylan 2023-08-13 14:41:45 +01:00
parent 35a1906d3d
commit c11db60eee

View File

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