aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-03-27 16:37:38 -0700
committerBryan Newbold <bnewbold@archive.org>2020-03-27 16:37:38 -0700
commit428e55998a861e48ccc951c7e64ee1d150ac1a51 (patch)
tree1e3f5f91f33c3e85cc60081f5d90d0d0b6a9610c
parentb91987978330b6da1c6bb5650418c2c6068340a1 (diff)
downloadsandcrawler-428e55998a861e48ccc951c7e64ee1d150ac1a51.tar.gz
sandcrawler-428e55998a861e48ccc951c7e64ee1d150ac1a51.zip
ingest: better spn2 pending error code
-rw-r--r--python/sandcrawler/ia.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/sandcrawler/ia.py b/python/sandcrawler/ia.py
index 510f23e..a76f094 100644
--- a/python/sandcrawler/ia.py
+++ b/python/sandcrawler/ia.py
@@ -863,6 +863,8 @@ class SavePageNowClient:
final_json['resources'],
)
else:
+ if final_json['status'] == 'pending':
+ final_json['status'] = 'error:pending'
return SavePageNowResult(
False,
final_json.get('status_ext') or final_json['status'],