aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-11-12 20:33:36 -0800
committerBryan Newbold <bnewbold@archive.org>2020-11-12 20:33:36 -0800
commit54bb5b6b7fb7a19aac7093a170e5b062f51e5a47 (patch)
treefe76d022019f61ddf28acd12735014fca73c5bd6
parentfb8497ebcb470a6da99c8d4cee5658b17672b86b (diff)
downloadsandcrawler-54bb5b6b7fb7a19aac7093a170e5b062f51e5a47.tar.gz
sandcrawler-54bb5b6b7fb7a19aac7093a170e5b062f51e5a47.zip
spn 'forbidden' status code
-rw-r--r--python/sandcrawler/ia.py2
1 files changed, 1 insertions, 1 deletions
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")