straight assert

This commit is contained in:
meejah 2021-10-25 21:49:25 -06:00
parent 94670461f1
commit 069c332a68

View File

@ -86,10 +86,7 @@ def _convert_pickle_state_to_json(state):
# ["cycle-to-date"]["leases-per-share-histogram"] gets str keys instead of int
# ["cycle-start-finish-times"] from 2-tuple to list
# ["history"] keys are strings
if state["version"] != 1:
raise ValueError(
"Unknown version {version} in pickle state".format(**state)
)
assert state["version"] == 1, "Only known version is 1"
converters = {
"cycle-to-date": _convert_cycle_data,