Raise correct exception when worker fails

'Future' object has no attribute 'exception_info'

Change-Id: I8cbdb0c9d82d9d06edfe8860961cd8112e56df62
Closes-Bug: #1850549
This commit is contained in:
Rafael Folco 2019-10-29 17:27:42 -03:00 committed by Ronelle Landy
parent 37a7f6e65b
commit c167d3afd5

View File

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