handle exception when output is missing
This commit is contained in:
parent
f8fc61e9bd
commit
f71240c9a6
@ -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.")
|
||||||
|
Loading…
Reference in New Issue
Block a user