From f71240c9a698e430b02cc41ec1a65946e329c444 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Wed, 9 Dec 2020 12:31:01 +0100 Subject: [PATCH] handle exception when output is missing --- owrx/audio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owrx/audio.py b/owrx/audio.py index 1482310..d6ba3f5 100644 --- a/owrx/audio.py +++ b/owrx/audio.py @@ -187,7 +187,7 @@ class AudioWriter(object): try: for line in decoder.stdout: self.outputWriter.send((self.profile, job.freq, line)) - except OSError: + except (OSError, AttributeError): decoder.stdout.flush() # TODO uncouple parsing from the output so that decodes can still go to the map and the spotters logger.debug("output has gone away while decoding job.")