Fix linting
This commit is contained in:
parent
67a9bda6e1
commit
d2af345c0c
|
@ -88,6 +88,7 @@ class Chest(InventoryHolder, FriendlyEntity):
|
||||||
"""
|
"""
|
||||||
return self.annihilated
|
return self.annihilated
|
||||||
|
|
||||||
|
|
||||||
class Sunflower(FriendlyEntity):
|
class Sunflower(FriendlyEntity):
|
||||||
"""
|
"""
|
||||||
A friendly sunflower.
|
A friendly sunflower.
|
||||||
|
|
|
@ -421,7 +421,8 @@ class Game:
|
||||||
self.maps = [Map().load_state(map_dict) for map_dict in d["maps"]]
|
self.maps = [Map().load_state(map_dict) for map_dict in d["maps"]]
|
||||||
except KeyError as error:
|
except KeyError as error:
|
||||||
self.message = _("Some keys are missing in your save file.\n"
|
self.message = _("Some keys are missing in your save file.\n"
|
||||||
"Your save seems to be corrupt. It got deleted.") + f"\n{error}"
|
"Your save seems to be corrupt. It got deleted.")\
|
||||||
|
+ f"\n{error}"
|
||||||
os.unlink(ResourceManager.get_config_path("save.json"))
|
os.unlink(ResourceManager.get_config_path("save.json"))
|
||||||
self.display_actions(DisplayActions.UPDATE)
|
self.display_actions(DisplayActions.UPDATE)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue