Commit 069cf4b6 authored by santiago duque's avatar santiago duque

safe try catch for no index audio

parent 8a33a0d9
...@@ -51,7 +51,7 @@ def play_sound(index): ...@@ -51,7 +51,7 @@ def play_sound(index):
try: try:
channel = sound_array[current_sound_index].play() channel = sound_array[current_sound_index].play()
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)
while channel.get_busy(): while channel.get_busy():
......
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