commit 993ed9488bdce46c06b0f3bc39b0b3f1c7f58215
parent a8aa1f91d5e13d9d9fe2c10b81e3e1965f3802cc
Author: rbckman <rob@tarina.org>
Date: Mon, 22 Mar 2021 19:11:15 +0000
dont throw error if not playing while pause
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tarina.py b/tarina.py
@@ -2360,8 +2360,11 @@ def playdub(filename, headphoneslevel, player_menu):
pass
starttime = time.time()
elif menu[selected] == 'PAUSE':
- player.pause()
- pause = True
+ try:
+ player.pause()
+ pause = True
+ except:
+ pass
elif menu[selected] == 'PLAY':
player.play()
pause = False