From 3371264c50fa29397ab351f0319fea38ccce0d17 Mon Sep 17 00:00:00 2001 From: Kelly Date: Tue, 25 Aug 2026 11:31:41 -0700 Subject: [PATCH] Update golfsim.py --- modules/games/golfsim.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/games/golfsim.py b/modules/games/golfsim.py index 0bcfeb0..b56d17e 100644 --- a/modules/games/golfsim.py +++ b/modules/games/golfsim.py @@ -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)