Preventing errors where there is no previous wav file.

This commit is contained in:
Marat Fayzullin 2022-11-20 23:33:13 -05:00
parent dff515be46
commit d1a6654c1d

View File

@ -85,6 +85,7 @@ class AudioWriter(object):
file = self.wavefile
self.wavefile = self.getWaveFile()
if file is not None:
file.close()
tmp_dir = CoreConfig().get_temporary_directory()