This commit is contained in:
kshea21 2025-01-06 18:03:47 -08:00 committed by Gregory Becker
parent 0808fd1a44
commit 03a3546f14
No known key found for this signature in database
GPG Key ID: 2362541F6D14ED84

View File

@ -868,7 +868,7 @@ class Task:
"""Base class for representing a task for a package.""" """Base class for representing a task for a package."""
success_result: Optional[ExecuteResult] = None success_result: Optional[ExecuteResult] = None
error_result: Optional[spack.error.InstallError] = None error_result: Optional[BaseException] = None
def __init__( def __init__(
self, self,
@ -2255,7 +2255,7 @@ def complete_task(task) -> None:
# this overrides a full method, which is ugly. # this overrides a full method, which is ugly.
task.use_cache = False # type: ignore[misc] task.use_cache = False # type: ignore[misc]
self._requeue_task(task, install_status) self._requeue_task(task, install_status)
return True return None
except (Exception, SystemExit) as exc: except (Exception, SystemExit) as exc:
self._update_failed(task, True, exc) self._update_failed(task, True, exc)