From 428e55998a861e48ccc951c7e64ee1d150ac1a51 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 27 Mar 2020 16:37:38 -0700 Subject: ingest: better spn2 pending error code --- python/sandcrawler/ia.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python') 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'], -- cgit v1.2.3