protect against low-level errors during switching

This commit is contained in:
Jakob Ketterl 2021-04-30 01:20:33 +02:00
parent 540198b12a
commit f8971ac704

View File

@ -91,7 +91,11 @@ class AudioWriter(object):
pid=id(profile),
timestamp=datetime.utcnow().strftime(profile.getFileTimestampFormat()),
)
try:
os.link(file.getFileName(), filename)
except OSError:
logger.warning("Error while linking job files")
continue
job = QueueJob(profile, self.outputWriter, filename, self.dsp.get_operating_freq())
try: