Answer the prose review's third round, and file the human's two answers
This commit is contained in:
@@ -45,7 +45,7 @@ def run_cycle(cycle: Cycle) -> Stop | None:
|
||||
def stopped(cycle: Cycle, stop: Stop, why: str) -> Stop:
|
||||
path = transcript_file(cycle.session)
|
||||
failure = archive(cycle.project_key, path, cycle.task, f"Stopped: {why}", cycle.paths) if path else None
|
||||
# A failed archive exits 1 whatever stopped the loop; one that is the stop itself fails the same way again, so say it once.
|
||||
# A failed archive exits 1 whatever the stop; when the stop was this archive failing, its reason is said once.
|
||||
return Stop(1, f"{failure.reason}\n{stop.reason}".rstrip()) if failure and failure.reason != stop.reason else stop
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user