From cab1df2966786928d960f3e0df73ff20e7e1467f Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Mon, 19 Oct 2020 23:57:44 +0000 Subject: [PATCH] twitterchiver/related_fetcher: treat 403 as deleted as well --- go/twitterchiver/related_fetcher/fetcher.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go/twitterchiver/related_fetcher/fetcher.go b/go/twitterchiver/related_fetcher/fetcher.go index e867e7de31..6493086f8f 100644 --- a/go/twitterchiver/related_fetcher/fetcher.go +++ b/go/twitterchiver/related_fetcher/fetcher.go @@ -237,8 +237,8 @@ func mediaFetchTick(ctx context.Context, cfg WorkerConfig) error { switch resp.StatusCode { case http.StatusOK: break // This is what we expect. - case http.StatusNotFound: - log.Printf("[%v:%d:%v] got a 404; marking as successful since this has probably been deleted.", cfg.Name, t.ID, u) + case http.StatusNotFound, http.StatusForbidden: + log.Printf("[%v:%d:%v] got a %d; marking as successful since this has probably been deleted.", cfg.Name, t.ID, u, resp.StatusCode) return nil default: return fmt.Errorf("HTTP status %d - %v", resp.StatusCode, resp.Status)