This commit is contained in:
meejah 2021-10-25 21:12:17 -06:00
parent 75410e51f0
commit a867294e00
1 changed files with 0 additions and 2 deletions

View File

@ -61,7 +61,6 @@ class _HistorySerializer(object):
:return dict: the existing history state :return dict: the existing history state
""" """
assert self._path is not None, "Not initialized"
with self._path.open("rb") as f: with self._path.open("rb") as f:
history = json.load(f) history = json.load(f)
return history return history
@ -70,7 +69,6 @@ class _HistorySerializer(object):
""" """
Serialize the existing data as JSON. Serialize the existing data as JSON.
""" """
assert self._path is not None, "Not initialized"
with self._path.open("wb") as f: with self._path.open("wb") as f:
json.dump(new_history, f) json.dump(new_history, f)
return None return None