diff --git a/src/treepuncher/storage.py b/src/treepuncher/storage.py index 686dc34..fc1fc26 100644 --- a/src/treepuncher/storage.py +++ b/src/treepuncher/storage.py @@ -87,6 +87,6 @@ class Storage: def put(self, key:str, val:Any) -> None: cur = self.db.cursor() cur.execute("DELETE FROM documents WHERE name = ?", (key,)) - cur.execute("INSERT INTO documents VALUES (?, ?)", (key, json.dumps(val))) + cur.execute("INSERT INTO documents VALUES (?, ?)", (key, json.dumps(val, default=str))) self.db.commit()