Fixing intermittent unhandled exception when closing a non-existant file.
This commit is contained in:
parent
67e9e302c2
commit
db1ff89ae2
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user