Update golfsim.py

This commit is contained in:
Kelly committed 2026-08-25 11:31:41 -07:00
1 parent 434f8aeb28
commit 3371264c50
1 file changed
+2 -2
+2 -2
View File
@@ -105,8 +105,8 @@ def getHighScoreGolf(nodeID, strokes, par):
try:
with open('data/golfsim_hs.pkl', 'rb') as f:
golfHighScore = pickle.load(f)
except:
logger.debug("System: GolfSim: High Score file not found.")
except Exception as e:
logger.debug(f"System: GolfSim: High Score file not found, creating new one: {e}")
golfHighScore = [{'nodeID': nodeID, 'strokes': strokes, 'par': par}]
with open('data/golfsim_hs.pkl', 'wb') as f:
pickle.dump(golfHighScore, f)