summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/cooker.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 2b38065de..8f79c4f72 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -708,8 +708,8 @@ class BBCooker:
failures = 0
try:
retval = rq.execute_runqueue()
- except runqueue.TaskFailure, fnids:
- for fnid in fnids:
+ except runqueue.TaskFailure as exc:
+ for fnid in exc.args:
bb.msg.error(bb.msg.domain.Build, "'%s' failed" % taskdata.fn_index[fnid])
failures = failures + 1
retval = False
@@ -744,8 +744,8 @@ class BBCooker:
failures = 0
try:
retval = rq.execute_runqueue()
- except runqueue.TaskFailure, fnids:
- for fnid in fnids:
+ except runqueue.TaskFailure as exc:
+ for fnid in exc.args:
bb.msg.error(bb.msg.domain.Build, "'%s' failed" % taskdata.fn_index[fnid])
failures = failures + 1
retval = False