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
1 changed files with 3 additions and 1 deletions

View File

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