This commit is contained in:
benthecarman 2026-11-28 22:44:49 +08:00 committed by GitHub
commit 152fbe29ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -1549,6 +1549,11 @@ def run():
else:
print(f"[red]Error: {formatted}[/]")
# A predefined action is not retried, so without this, a failed
# headless run would exit as if it had succeeded.
if settings.model_action is not None:
sys.exit(1)
def main():
rich.traceback.install()