diff options
author | Ben Brown <ben.brown@codethink.co.uk> | 2017-07-19 13:55:25 +0100 |
---|---|---|
committer | Ben Brown <ben.brown@codethink.co.uk> | 2017-07-19 16:33:15 +0100 |
commit | 36311180c841f208689aa2eca9386953ed77bb0b (patch) | |
tree | a2beec7496c373d41791a8bdb85a52c775b53ec4 | |
parent | 3f65a08ca5dca5dee749676d79b4a77c21fa410f (diff) | |
download | ybd-36311180c841f208689aa2eca9386953ed77bb0b.tar.gz |
Set default value for out and err if values are unset by subprocess
-rw-r--r-- | ybd/sandbox.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ybd/sandbox.py b/ybd/sandbox.py index 2a6c911..5314bd2 100644 --- a/ybd/sandbox.py +++ b/ybd/sandbox.py @@ -164,6 +164,7 @@ def run_sandboxed(dn, command, env=None, allow_parallel=False, # lazy load it in the chroot is made. unused = "Some Text".encode('string-escape') + out = err = "" argv = ['sh', '-c', '-e', command] cur_makeflags = env.get("MAKEFLAGS") |