aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/sandcrawler/pdfextract.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/sandcrawler/pdfextract.py b/python/sandcrawler/pdfextract.py
index 921c883..3701172 100644
--- a/python/sandcrawler/pdfextract.py
+++ b/python/sandcrawler/pdfextract.py
@@ -53,7 +53,7 @@ class PdfExtractResult:
"""
if record['status'] != 'success':
return PdfExtractResult(
- sha1hex=record['sha1hex'],
+ sha1hex=record.get('sha1hex') or record['key'],
status=record['status'],
error_msg=record.get('error_msg'),
)