bodhi/masher.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit f097b382fb251860f5ec24c4b340b9620bdaec38 Author: Luke Macken lmacken@redhat.com Date: Thu May 6 15:43:47 2010 -0400
Only write out stderr if it is not None
diff --git a/bodhi/masher.py b/bodhi/masher.py index 438a89b..9aa8f41 100644 --- a/bodhi/masher.py +++ b/bodhi/masher.py @@ -564,8 +564,9 @@ class MashTask(Thread): % time.strftime("%y%m%d.%H%M")) out = file(failed_output, 'w') out.write(stdout) - out.write('\n\nstderr:\n\n') - out.write(stderr) + if stderr: + out.write('\n\nstderr:\n\n') + out.write(stderr) out.close() log.info("Wrote failed mash output to %s" % failed_output) self.log = failed_output