From f8971ac704c3e74a3c5b170c597443cb0a3ea792 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Fri, 30 Apr 2021 01:20:33 +0200 Subject: [PATCH] protect against low-level errors during switching --- owrx/audio/wav.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/owrx/audio/wav.py b/owrx/audio/wav.py index cccdc96..b40c40c 100644 --- a/owrx/audio/wav.py +++ b/owrx/audio/wav.py @@ -91,7 +91,11 @@ class AudioWriter(object): pid=id(profile), timestamp=datetime.utcnow().strftime(profile.getFileTimestampFormat()), ) - os.link(file.getFileName(), filename) + 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: