From d70a1b5654810239f9458ab7390ce74fb7df0317 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Thu, 6 Jun 2019 22:08:07 +0200 Subject: [PATCH] BrokenPipeError to execpt --- ffplayout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffplayout.py b/ffplayout.py index 02bbd95a..89ed0674 100755 --- a/ffplayout.py +++ b/ffplayout.py @@ -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()