Browse Source

fix handling of skipped ArchiveResult entries with null output

Nick Sweeting 4 years ago
parent
commit
0aea5ed3e8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      archivebox/core/migrations/0007_archiveresult.py

+ 1 - 1
archivebox/core/migrations/0007_archiveresult.py

@@ -37,7 +37,7 @@ def forwards_func(apps, schema_editor):
         for extractor in history:
         for extractor in history:
             for result in history[extractor]:
             for result in history[extractor]:
                 ArchiveResult.objects.create(extractor=extractor, snapshot=snapshot, cmd=result["cmd"], cmd_version=result["cmd_version"] or 'unknown', 
                 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):
 def verify_json_index_integrity(snapshot):