Merge branch 'trough-dedup' into qa

* trough-dedup:
  deal with case of case of no warc records written in trough dedup
This commit is contained in:
Noah Levitt 2017-11-15 17:37:31 -08:00
commit a438994b12

View File

@ -292,7 +292,7 @@ class TroughDedupDb(object):
return None
def notify(self, recorded_url, records):
if (records[0].get_header(warctools.WarcRecord.TYPE) == warctools.WarcRecord.RESPONSE
if (records and records[0].type == b'response'
and recorded_url.response_recorder.payload_size() > 0):
digest_key = warcprox.digest_str(
recorded_url.payload_digest,