BrokenPipeError to execpt

This commit is contained in:
jb-alvarado 2019-06-06 22:08:07 +02:00
parent be7f34aa7a
commit d70a1b5654

View File

@ -1061,7 +1061,7 @@ def main():
] + src_cmd + ff_pre_settings,
stdout=PIPE) as decoder:
copyfileobj(decoder.stdout, encoder.stdin)
except (KeyboardInterrupt, SystemExit):
except (KeyboardInterrupt, SystemExit, BrokenPipeError):
logger.warning('program terminated')
watcher.stop()
decoder.terminate()