style
This commit is contained in:
parent
0808fd1a44
commit
03a3546f14
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user