1
0
Fork 0
mirror of https://gitlab.com/oloturia/damastodon.git synced 2025-01-06 21:47:15 +01:00

fixed a bug that happens if the game crashes again

This commit is contained in:
oloturia 2021-11-03 13:17:44 +01:00
parent ff0b29482e
commit 3d8ba0f5e8

View file

@ -105,7 +105,8 @@ def check_message(notification):
try:
start = pickle.load(f)
except EOFError: # Something went very wrong, file is corrupt?
mastodon.status_post("Hello @"+account+" \n unfortunately, your savegame is corrupted or missing",visibility="direct") #The file has moved or corrupted
mastodon.status_post("Hello @"+account+" \n unfortunately, your savegame is corrupted or missing",visibility="direct") #The file has been moved or is corrupted
os.remove(save_position+account)
print(account+" file corrupted")
return
if start: #The game is started, load other parameters