From f7f2a8994f3a3a847032874234232067282533c3 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Mon, 23 Jul 2018 23:50:22 +0200 Subject: [PATCH] Fix the no retry on client error --- tasks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks.py b/tasks.py index 1670fcf..ae525ca 100644 --- a/tasks.py +++ b/tasks.py @@ -151,6 +151,7 @@ def fetch_og_metadata(self, iri: str) -> None: except requests.exceptions.HTTPError as http_err: if 400 <= http_err.response.status_code < 500: log.exception("bad request, no retry") + return log.exception("failed to fetch OG metadata") self.retry( exc=http_err, countdown=int(random.uniform(2, 4) ** self.request.retries)