You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
else: # If the platform.system() is not in the SOUND_COMMANDS dictionary
34
+
else: # If the platform.system() is not in the SOUND_COMMANDS dictionary
35
35
print(f"{BackgroundColors.RED}The {BackgroundColors.CYAN}platform.system(){BackgroundColors.RED} is not in the {BackgroundColors.CYAN}SOUND_COMMANDS dictionary{BackgroundColors.RED}. Please add it!{Style.RESET_ALL}")
36
-
else: # If the sound file does not exist
36
+
else: # If the sound file does not exist
37
37
print(f"{BackgroundColors.RED}Sound file {BackgroundColors.CYAN}{SOUND_FILE}{BackgroundColors.RED} not found. Make sure the file exists.{Style.RESET_ALL}")
38
38
39
39
# Register the function to play a sound when the program finishes
40
40
atexit.register(play_sound)
41
41
42
42
# Function to calculate total points based on race results
0 commit comments