From aafb72f307984a4d003defbc98e15cd4c20568d2 Mon Sep 17 00:00:00 2001 From: Dylan Date: Tue, 1 Aug 2023 14:11:21 +0100 Subject: [PATCH] Fix small issue --- twExtract/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twExtract/__init__.py b/twExtract/__init__.py index de89467..da45aa0 100644 --- a/twExtract/__init__.py +++ b/twExtract/__init__.py @@ -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: