migration system

This commit is contained in:
2026-06-24 18:32:51 -04:00
parent 3ec04552b0
commit 42cfe4823b
4 changed files with 19 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
import json
import os
import time
@@ -67,7 +68,7 @@ class App:
continue
try:
save = persistence.load(save_name)
except persistence.json.JSONDecodeError:
except (json.JSONDecodeError, KeyError):
print(
"There was an error loading your savefile, it may be corrupt :("
)