Raise correct exception when worker fails

'Future' object has no attribute 'exception_info'

Change-Id: I8cbdb0c9d82d9d06edfe8860961cd8112e56df62
Closes-Bug: #1850549
Rafael Folco 2019-10-29 17:27:42 -03:00 committed by Ronelle Landy
parent 37a7f6e65b
commit c167d3afd5
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ class BuildahBuilder(base.BaseBuilder):
# but not executed a SystemError will be raised.
for job in done:
if job._exception:
raise SystemError(job.exception_info)
raise SystemError(job._exception)
if not_done:
raise SystemError(