Skip to content

Commit 899713a

Browse files
authored
Update note.py
1 parent 0e9bb25 commit 899713a

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

audio_sticky_notes/note.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,10 @@ def rec(duration):
2727

2828

2929
def playback():
30-
try:
31-
filename = "assets\\recordings\\AudioNote{}.flac".format(str(sys.argv[1]))
32-
data, fs = sf.read(filename, dtype='float32')
33-
sd.play(data, fs)
34-
sd.wait()
35-
except:
36-
pass
30+
filename = "assets\\recordings\\AudioNote{}.flac".format(str(sys.argv[1]))
31+
data, fs = sf.read(filename, dtype='float32')
32+
sd.play(data, fs)
33+
sd.wait()
3734

3835

3936
master = tkinter.Tk()

0 commit comments

Comments
 (0)