aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/sandcrawler/ingest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/sandcrawler/ingest.py b/python/sandcrawler/ingest.py
index b50bcee..6f9da86 100644
--- a/python/sandcrawler/ingest.py
+++ b/python/sandcrawler/ingest.py
@@ -176,7 +176,7 @@ class IngestFileWorker(SandcrawlerWorker):
# soft404 = True
old_failure = False
- if resource and not resource.hit and resource.terminal_dt < '20190000000000':
+ if resource and not resource.hit and resource.terminal_dt and resource.terminal_dt < '20190000000000':
old_failure = True
if self.try_spn2 and (resource == None or (resource.status == 'no-capture') or soft404 or old_failure):