fix handling of skipped ArchiveResult entries with null output

This commit is contained in:
Nick Sweeting 2021-02-01 14:37:34 -05:00
parent b90afc8c04
commit 0aea5ed3e8

View file

@ -37,7 +37,7 @@ def forwards_func(apps, schema_editor):
for extractor in history:
for result in history[extractor]:
ArchiveResult.objects.create(extractor=extractor, snapshot=snapshot, cmd=result["cmd"], cmd_version=result["cmd_version"] or 'unknown',
start_ts=result["start_ts"], end_ts=result["end_ts"], status=result["status"], pwd=result["pwd"], output=result["output"])
start_ts=result["start_ts"], end_ts=result["end_ts"], status=result["status"], pwd=result["pwd"], output=result["output"] or 'null')
def verify_json_index_integrity(snapshot):