keep script alive

This commit is contained in:
2026-05-02 22:30:01 -04:00
parent d832351c67
commit 32bb10f30b
+3
View File
@@ -61,6 +61,9 @@ def play_goal_horn():
try:
pygame.mixer.music.load("/usr/local/share/horn.mp3")
pygame.mixer.music.play()
while pygame.mixer.music.get_busy():
pygame.time.Clock().tick(10)
except Exception as e:
print(f"Audio error: {e}")