Commit 0c158085 authored by santiago duque's avatar santiago duque

safe try catch for no index audio

parent 069cf4b6
...@@ -53,6 +53,7 @@ def play_sound(index): ...@@ -53,6 +53,7 @@ def play_sound(index):
except Exception as X: except Exception as X:
print("no sound with this index: ", current_sound_index) print("no sound with this index: ", current_sound_index)
print(X) print(X)
return
while channel.get_busy(): while channel.get_busy():
pygame.time.wait(150) # ms pygame.time.wait(150) # ms
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment