BrokenPipeError to execpt
This commit is contained in:
parent
be7f34aa7a
commit
d70a1b5654
@ -1061,7 +1061,7 @@ def main():
|
|||||||
] + src_cmd + ff_pre_settings,
|
] + src_cmd + ff_pre_settings,
|
||||||
stdout=PIPE) as decoder:
|
stdout=PIPE) as decoder:
|
||||||
copyfileobj(decoder.stdout, encoder.stdin)
|
copyfileobj(decoder.stdout, encoder.stdin)
|
||||||
except (KeyboardInterrupt, SystemExit):
|
except (KeyboardInterrupt, SystemExit, BrokenPipeError):
|
||||||
logger.warning('program terminated')
|
logger.warning('program terminated')
|
||||||
watcher.stop()
|
watcher.stop()
|
||||||
decoder.terminate()
|
decoder.terminate()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user