Fix linting

This commit is contained in:
Yohann D'ANELLO 2021-01-10 21:01:43 +01:00
parent 67a9bda6e1
commit d2af345c0c
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
2 changed files with 3 additions and 1 deletions

View File

@ -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.

View File

@ -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