handle exception when output is missing

This commit is contained in:
Jakob Ketterl 2020-12-09 12:31:01 +01:00
parent f8fc61e9bd
commit f71240c9a6
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ class AudioWriter(object):
try: try:
for line in decoder.stdout: for line in decoder.stdout:
self.outputWriter.send((self.profile, job.freq, line)) self.outputWriter.send((self.profile, job.freq, line))
except OSError: except (OSError, AttributeError):
decoder.stdout.flush() decoder.stdout.flush()
# TODO uncouple parsing from the output so that decodes can still go to the map and the spotters # 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.") logger.debug("output has gone away while decoding job.")