From 54bb5b6b7fb7a19aac7093a170e5b062f51e5a47 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 12 Nov 2020 20:33:36 -0800 Subject: spn 'forbidden' status code --- python/sandcrawler/ia.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/sandcrawler/ia.py b/python/sandcrawler/ia.py index 6e90fbf..4da07af 100644 --- a/python/sandcrawler/ia.py +++ b/python/sandcrawler/ia.py @@ -935,7 +935,7 @@ class SavePageNowClient: if status in ("error:invalid-url", "error:not-found", "error:invalid-host-resolution", "error:gateway-timeout"): status = status.replace("error:", "") - elif status == "error:no-access": + elif status in ("error:no-access", "error:forbidden"): status = "forbidden" elif status == "error:user-session-limit": raise SavePageNowBackoffError("SPNv2 user-session-limit") -- cgit v1.2.3