Skip to content

Commit

Permalink
Make sure subprocess errors get logged
Browse files Browse the repository at this point in the history
  • Loading branch information
rafelafrance committed Apr 10, 2020
1 parent 6c50455 commit 27fb102
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/log.py
Expand Up @@ -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:
Expand Down

0 comments on commit 27fb102

Please sign in to comment.