Test monocles

This commit is contained in:
Yohann D'ANELLO
2021-01-08 15:58:54 +01:00
parent a497d08f31
commit 7a4936e6a5
3 changed files with 31 additions and 13 deletions

View File

@ -345,7 +345,7 @@ class Game:
try:
self.map_index = d["map_index"]
self.maps = [Map().load_state(map_dict) for map_dict in d["maps"]]
except KeyError as e:
except KeyError:
self.message = _("Some keys are missing in your save file.\n"
"Your save seems to be corrupt. It got deleted.")
os.unlink(ResourceManager.get_config_path("save.json"))