summaryrefslogtreecommitdiff
path: root/morphlib/buildcontroller.py
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-01-24 14:42:37 +0000
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-01-24 14:42:37 +0000
commit5177afe15f8dd2c2dd5d1e80974f3a3c4169776b (patch)
tree761d77cc9832910b9be658a5c39ba01c03a890f4 /morphlib/buildcontroller.py
parent14e768ce2e5693ebf6418e7a6e94fe4fb9a71844 (diff)
downloadmorph-5177afe15f8dd2c2dd5d1e80974f3a3c4169776b.tar.gz
Avoid errors when a worker does not return any output.
Diffstat (limited to 'morphlib/buildcontroller.py')
-rw-r--r--morphlib/buildcontroller.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/morphlib/buildcontroller.py b/morphlib/buildcontroller.py
index f794928c..96f516fe 100644
--- a/morphlib/buildcontroller.py
+++ b/morphlib/buildcontroller.py
@@ -66,8 +66,9 @@ class BuildController(object):
# log the result of all workers that we are moving from busy to idle
for worker in finished:
self.msg('Built %s using worker %s' % (worker.blob, worker))
- for line in worker.output.split('\n'):
- self.msg('> %s' % line)
+ if worker.output:
+ for line in worker.output.split('\n'):
+ self.msg('> %s' % line)
# mark all finished workers as being idle
for worker in finished: