updated version check

This commit is contained in:
Vasyl Horbachenko
2018-09-11 03:35:52 +03:00
parent d31876b65e
commit 12853feec3
3 changed files with 14 additions and 9 deletions

View File

@@ -44,11 +44,8 @@ def restore_game():
if not _save_file_exists():
return None
try:
with open(_save_file(), "rb") as f:
return pickle.load(f)
except Exception as e:
raise e
with open(_save_file(), "rb") as f:
return pickle.load(f)
def save_game(game) -> bool: