From 2ba17136e098f9d321356a758742f2c7b00ab592 Mon Sep 17 00:00:00 2001 From: Mashiat Sarker Shakkhar Date: Mon, 26 Aug 2019 17:33:58 -0400 Subject: [PATCH] index/schema.py: Make cmd_version actually optional. During migration, we may have to import json index file which was produced with an older version. If the index file is missing cmd_version, migration will fail. --- archivebox/index/schema.py | 1 + 1 file changed, 1 insertion(+) diff --git a/archivebox/index/schema.py b/archivebox/index/schema.py index 66baa9d9..194878f7 100644 --- a/archivebox/index/schema.py +++ b/archivebox/index/schema.py @@ -59,6 +59,7 @@ class ArchiveResult: } info['start_ts'] = parse_date(info['start_ts']) info['end_ts'] = parse_date(info['end_ts']) + info['cmd_version'] = info.get('cmd_version') return cls(**info) def to_dict(self, *keys) -> dict: