From 27fb102b99684bea5c5c2d04e92fcc6ddfe8d457 Mon Sep 17 00:00:00 2001 From: rafe Date: Fri, 10 Apr 2020 11:58:03 -0400 Subject: [PATCH] Make sure subprocess errors get logged --- lib/log.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/log.py b/lib/log.py index 377e28b..c1e5d9d 100644 --- a/lib/log.py +++ b/lib/log.py @@ -85,6 +85,8 @@ def subcommand(cmd, temp_dir, timeout=None): timeout=timeout, stdout=log_output, stderr=log_output) + except Exception as err: # pylint: disable=broad-except + error('Exception: {}'.format(err)) finally: with open(log_output.name) as log_input: for line in log_input: