From e95f14d1d03be46f5a2a2afcd99622c453bd6049 Mon Sep 17 00:00:00 2001 From: Cristian Date: Mon, 4 Jan 2021 08:33:26 -0500 Subject: [PATCH] refactor: Avoid assigning tags directly when re-creating the snapshot from the json file --- archivebox/core/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/archivebox/core/models.py b/archivebox/core/models.py index 42fae496..82f7ecef 100644 --- a/archivebox/core/models.py +++ b/archivebox/core/models.py @@ -100,6 +100,9 @@ class Snapshot(models.Model): @classmethod def from_json(cls, info: dict): info = {k: v for k, v in info.items() if k in cls.keys} + if "tags" in info: + # TODO: Handle tags + info.pop("tags") return cls(**info) def as_json(self, *args) -> dict: