TaylorSMarks / playsound

Pure Python, cross platform, single function module with no dependencies for playing sounds.
Other
504 stars 118 forks source link

[enhancement] Possible improvement to solve Error with file closing #125

Open A-rad opened 2 years ago

A-rad commented 2 years ago

Hello! I saw there were a bunch of issues with music and sound "File not closing" once it has been played.

I found that the "Finally:" in line 58 was the source of my problem. If you cut it out entirely, and just leave the try/except, you will not have this issue. My sound file closed and there were no issues.

I think this could be the result of python version incompatibility or IDE/terminal syntax.