Trying to avoid other problems due to non-existant initial file.

This commit is contained in:
Marat Fayzullin 2022-11-20 22:21:24 -05:00
parent 34363220c1
commit 47a2a99a1f

View File

@ -85,6 +85,7 @@ class AudioWriter(object):
file = self.wavefile file = self.wavefile
self.wavefile = self.getWaveFile() self.wavefile = self.getWaveFile()
# if previously open file exists...
if file is not None: if file is not None:
file.close() file.close()