Fixing intermittent unhandled exception when closing a non-existant file.

This commit is contained in:
Marat Fayzullin 2022-11-06 22:52:12 -05:00
parent 67e9e302c2
commit db1ff89ae2

View File

@ -85,7 +85,9 @@ class AudioWriter(object):
file = self.wavefile file = self.wavefile
self.wavefile = self.getWaveFile() self.wavefile = self.getWaveFile()
if file != None:
file.close() file.close()
tmp_dir = CoreConfig().get_temporary_directory() tmp_dir = CoreConfig().get_temporary_directory()
for profile in self.profiles: for profile in self.profiles: