mirror of
https://gitlab.com/oloturia/damastodon.git
synced 2025-01-08 06:27:15 +01:00
fixed a bug that happens if the game crashes again
This commit is contained in:
parent
ff0b29482e
commit
3d8ba0f5e8
1 changed files with 2 additions and 1 deletions
|
@ -105,7 +105,8 @@ def check_message(notification):
|
||||||
try:
|
try:
|
||||||
start = pickle.load(f)
|
start = pickle.load(f)
|
||||||
except EOFError: # Something went very wrong, file is corrupt?
|
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")
|
print(account+" file corrupted")
|
||||||
return
|
return
|
||||||
if start: #The game is started, load other parameters
|
if start: #The game is started, load other parameters
|
||||||
|
|
Loading…
Reference in a new issue